utility method to wrap HTTPErrors with MitreIdExceptions

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Refs #806.
don't lose the original exceptions when raising a MitreIdException

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Refs #806.
make sure the created client is deleted even if a test fails

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Refs #806.
until tokens stop expiring, I cannot be sure I'll know the default token's
properties

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Refs #806.
new token

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Refs #806.
Token.read() doesn't have default values anymore

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Refs #806.