OAuth2 is a pain in the ass

Contained in this commit is at least 3 different attempts at getting a
working OAuth2 dialog going in JavaScript