Adding support for OWSContext

Available for a first review. May need more work.