Merge pull request #3 from marthall/auth_require_group

Makes it possible to define required groups in settings for authentication to succeed
Change to ApiError instead of TokenError
Merge pull request #2 from marthall/invalid_token_error

Gives a proper exception if token is invalid
Merge remote-tracking branch 'upstream/master'