Added authorization operations

Added authorization operations and ability to get connection by authorization token.
it looks like we can only have 1 authorization at the time. Is this required or simply to make things simpler?