Fixed logic derp.

- Rearranged package structure to make a future client-side library
easier.
- Fixed a logic derp with the _handleWebSocket().