Port ctlfish to sockjs

Also simplify the protocol and do better error-checking. Being able to
use CloseEvent from WebSocket is nice.
Sync package.json with openshift version a bit
Oops
Formatting