Web-sockets Core Stuff

Pulled in some piece from the angular-socket-io-seed project for
upcoming web-socket fun stuff.