#1 Migration to WebSocket protocol. Initial changes.