Merge pull request #1 from liggitt/oauth

Wire up login handler, fix redirects and login tests
Move auth success/invalidate to interface