Changed user model on the server

Changed user model - photo variable contains url;
Implemented user reset function