Added authorization operations

Added authorization operations and ability to get connection by authorization token.
There's another point imho: we should not rely on a single token, we should lookup the backend to see if we have pre-existing authorizations. Agree?