nodejs code style
fixed bug C2SStream.connection not beeing closed when server shut down
add proper `.end()` to BOSHServerSession
pipe close, end & error events from c2sPort to C2SServer
emit connection event from C2SServer like net.Server does
`C2SStream._addConnectionListeners()`
C2SStream api more like net.Socket
refactored connection
use hat to generate session ids
add shutdown to BoshServer and implemented it everywhere with callback
add bosh disconnect to properly close the client connection
split lib/bosh/bosh_server.js into lib/bosh/server.js and lib/bosh/session.js
rm dead code
refactor code to please jshint
add extended api to bosh
Merge branch 'master' into refactor-connection

Conflicts:
	lib/bosh/session.js
	lib/c2s/stream.js
	test/bosh.js
Merge pull request #25 from node-xmpp/refactor-connection

Refactor connection