Add support for Promise chaining. Allow BaseService to work even when

there is no Context available, in this case the Endpoint must be set
explicitly.