Cleaned up some more of the javascript client
* the three pending specs were brought over from RnP/sub_protocols