User api

This change contains the code the User Profile API.
Code review completed at http://mrccodereview.cloudapp.net/ui#review:id=1117