OAuth 2.0 authentication

GitHub version of http://codereview.musicbrainz.org/r/2439/ for testing.