Implement Context Endpoints

Implemented Context endpoints of GetContexts, GetContext, and
SetContext.