New version with style inspired by Web Sockets and Mozilla Firefox OS socket API.

Old "Berkeley style" version saved in subfolder.
Merge pull request #3 from ClaesNilsson/gh-pages

New more "webish" version