Create server and client skeletons
Implement simple long polling
Change from mutable state to state machine