Implement HttpPrincipalProvider and add unit tests

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