Added authorization operations

Added authorization operations and ability to get connection by authorization token.
Take the credit