minor housekeeping
Moving the debug_request tool to before the handler gets called, so we can dump the request before the handler molests it.
Handling the case where the DataStore returns None instead of a token,
which happens in the case of an invalid or expired token.

Logging cleanup.
Cleanup
Removed the before_finalize hook, since I'm not actually using it.

Added license info for gearshift-sourced code.

Clarified licensing and copyright for oauth.py.
license, etc
First working(ish) OAuth2
Removed unnecessary output indentation
OAuth2 token response changed to JSON so the Google java OAuth2 client
libraries work properly.
More OAuth2 stuff - now parsing Basic authentication for the client_credentials
grant type.

Cleanup of some commented-out old code.