Made Credentials a class, so it is passed ByRef to EndPointbase
Made it easy to authorize the service with an accesstoken, after constructor was called