Websocket compatabillity and transport adapters

This is the extracted version of #269. 

I've created an adapter repo at Dignifiedquire/transport-adapters for temporary use. Example usage can be found there. Also the browserchannel adapter is used in the test server for the browser tests.