Support ref.
Handle Authorisation errors.
Add some tests about oauth exceptions
Add new tests about getting content in a future release
Format code
Merge pull request #3 from srenault/master

Support ref & handle Authorisation errors.