Updated server-side session controller to use pub/sub
wip