Support custom loggers
Using typeof keyword instead of function
Merge pull request #63 from alex-whitney/aw/custom-logger

Support custom loggers
Update OAuth2Error to inherit from base error

OAuth2Error looks like an error, behaves like an error but it's not
actually an error. This can lead to all sorts of erratic behavior if one
expects it to be an instance of Error. These changes are fully
backwards-compatible. The error handler has been updated to keep the
error response compliant with a typical OAuth response.

Several tests have also been added to the error class.
Merge branch 'seegno-feature/oauth2error-inherit-error'. Closes #68
fix incorrect test
Add test for empty token in body
Allow null body

See #69