prevented unnecessary attempts to decode of empty buffers
fixed deadlock in server( #195 ) thanks @DeHecht for isolating the
problem
tweaked WebsocketServer.stop to perform a graceful shutdown
-made socket output stream gets flushed after every frame
-made close frames require a close frame in response before closing the
underlying socket