Second draft of the new State Machine.
Updated the garbage collector interval to 5 minutes.
Fixed some unit tests.
Bug fixes in persistence.User.