Merge pull request #194 from egirshov/master

Handle empty requests
emit error if connection aborted

Emit 'error' if connection is closed before request received fully.
Adjust test-fixtures to postpone socket.close().

add standalone test case on connection aborted