Fixed a few logic errors in Agent
- All actions now get saved in action_record_history_

Added a couple of convenience functions in UserModel