Modularizes websocket.js

Called in discussion and article #show pages.

Actual socket backend changed to sort open sockets by article
or discussion, and then again by id by using a nested hash.