Added authorization operations

Added authorization operations and ability to get connection by authorization token.
Overload the constructor such that it only takes a token but no username/password