Implement OAuth2 authentication

Tested with commit 1749aa32c25d8eee9ca0753cb55bd7d134f320b7, current
HEAD of the `gh-pages' branch.
Further explain `stack-cache-directory'

I looked at it for a few minutes and wondered how to use it -- and I
wrote the thing!  :)