t806: Hook up to server (logrus); miscellaneous cleanup; add unit tests
#806: Pass in host instead of hardcoding
DRY: use _API_ROOT directly in _get_endpoint
move host part of the URL to the Api class
add default scopes and personas to api
we need the _api member in classmethods as well, so saving it in __init__ is no good
style: use the _api class member instead of the closure variable
bugfix

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
DRY: refactor out the Authorization header

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
offline_access is giving trouble

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
fix the Token.read method

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
keep CRUD methods public

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
add a Token.save method just to be coherent with the Client API

though I don't think it's going to be used

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
convert Token.accessTokenExpiresAt to datetime object

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Merge pull request #2 from Lacrymology/IDCubed/pr1

Fixes from @maurycyp and work from there