WebSocket and HTTP framework. WIP