WIP: CometD integration

Adds cometd integration to support the bayeux protocol for low-latency webapp UI to server communication.