Implement HttpPrincipalProvider and add unit tests.

Addresses https://www.pivotaltracker.com/story/show/66455510