Unified handlers (loop/websocket/rest) + messaging/statet
Move message receiving handlers into StateT for typed access to the current pid, unify the underlying handler so they can be switched easiily
Move message receiving handlers into StateT for typed access to the current pid, unify the underlying handler so they can be switched easiily