Switch user profile from xml to json. Improve example app.

I thought it would be nicer to use native JSON instead of XML. I also added support for emails in the user profile. The example app now demonstrates more of the features (logout, ensureAuthenticated, etc.)