Refactors token management inside config

This brings some logic from error handling and isolates the token
management in the configuration.

The BBConfig class gets refactored around the token handling.
Fixes incorrect file accessor
Removes unauthenticated logic from ErrorParser

In trying to recover from errors globally we are again going down the
route of relying on a global config to tell it to renew tokens.

This moves part of the error handling into the GLI module where config
is.
Fixes token renewal when adding a new "user" client
Extracts mocking of password prompt

Specs need to cope with authentication in one of two ways, 1) prep the
spec with tokens (fudged to the recording) or 2) when using a user
application, cope with the password prompt that blocks the specs.