Enable support for OAuth2 custom access_token param names and JSON authentication responses.

Fix #18. Fix #19.