This commit adds support for the "Content-Security-Policy" header in the barrel images.
This commit cleans up the websocket protocol to be in line with the documentation.