Added client code for users

* Also updated base entity class to use idAttribute