Added authorization operations

Added authorization operations and ability to get connection by authorization token.
That is preexisting, but I can update