* added saving of state. * moved all state into the user profile, this will allow us to load state after a user logs in when we add user accounts later.