Pull request sso 04 12 2013 a

This pull request is for you to review the changes required for Omniauth SSO integration. The pull request is not to be merged in as it is our understanding that there are a number of key decisions to be made before integration. We would love to hear your thoughts and suggestions after you've had a chance to go through the code.