Some work on accessing the branches, an initial version of websocket handshake