Add account and user persistence.
Add logging.