Gives a proper exception if token is invalid
Change to ApiError instead of TokenError
Merge pull request #2 from marthall/invalid_token_error

Gives a proper exception if token is invalid