Refactored pubsub-to-websocket class
Refactored pubsub-to-websocket class

* More modular
* More readable
* Less magic

golozubov/freefeed-server,davidmz/pepyatka-server,FreeFeed/freefeed-server,pepyatka/pepyatka-server,FreeFeed/freefeed-server,SiTLar/freefeed-server,golozubov/freefeed-server,SiTLar/freefeed-server