Cleanup models
Changed api to send json
Added some fields to User object
Persist user login
Added register api method