Implement simple long polling
Change from mutable state to state machine
Add server side timeout
Add README