Update User.php
implement option to store user as id/obj
Apply setting for storing user as object or id
Merge pull request #15 from personman/store-user-obj

Store user obj