Start client code like server side
Make state syncing code more explicit
Simplify state functions
Comment out integration test
Remove init-server from state handling
Push state history into state handling
Make server, client agent APIs more similar
Pull state history into state handler loop

- This is incidental complexity and other code doesn't need to know
  about it