Fixes issue #139

Making HttpServerResponse.close() idempotent and reducing two flushes to one for most RequestHandlers.
Merge pull request #140 from NiteshKant/master

Fixes issue #139