Bug 487627 - [http] IllegalStateException in DispatchTargets

Be friendlier to those cases where the stream/writer is not flushed or closed (I think most implementations do this also).
Also make a general cleanup and improvement in dispatching, particularly in forward.

Signed-off-by: Raymond Auge <raymond.auge@liferay.com>
7 files changed