Merge pull request #31 from cayasso/master

Allow passing functions as plugins for issue #30
[minor] Small stying upgrade
[minor] Expose a `.socket` property -- makes debugging a bit easier
[minor] Deploy to @nodejitsu under http://primus-example.nodejitsu.com/
[minor] Make sure that the demo is functional and that you can send info;
[minor] Added server side socket example
[minor] Added kill option to test reconnect
[doc] Add a mention of the example code.
[minor] Fixed a thrown error
[test] Adding test for basic auth support
[feature] Working on an `authorization` hook
[fix] It should be a `basic` header
[major] Added connection timeout
[minor] Mention `timeout` event
[fix] Better authorization handling in Node
[fix] Make sure we correctly deal with it in the browser.
[test] Added test for the `timeout` event
Merge pull request #33 from 3rd-Eden/basic-auth

Basic auth
[fix] Better check against the websockets option so it can also be disabled. #34
[minor] small variable rename
[test] Added test that disables websockets.. Fixes #34