Refactor to build upon Tulip's WSGI support.

Closes #2.
Move websocket handling code to websockets package.

Review the documentation.