First event sourced attempt

Persisting the state of the Master actor with event sourcing.

This is not ready for merge to master, but comments are welcome.