Added authorization operations

Added authorization operations and ability to get connection by authorization token.
Please add a useful comment