Added Basic Authentiation for simple scenarios.
Management of contract endpoints.