this fixes a UI bug where pages don't show without a browser refresh

Revert "moved the websocket code to a service, split up the controllers, restructured directories"

This reverts commit 1aa781a2b9ab6d0fdd01c0765101c01ea6d2b0d2.