factor out websocket client connection code
fixed urls with multiple parameters
Added a comms integration test
Fixed cache rest test
Added 404 test