adds a test for port binding behavior, fixes #331
avoid throwing and emit errors instead (except for two usage asserts), including a refactor of connect routine to support emitting socket open errors. updates #262 (will need to confirm event propagation through HTTP module)
fix whitespace
stop server from continued polling after socket is closed, fixes #333
travisplexer: pr-313-linux travis ci test