Added authorization operations

Added authorization operations and ability to get connection by authorization token.
Can this be overloaded by renaming to getConnection with the necessary arguments