Implement basic event sourcing.
Minor clean up.