Feature/context

Issue #2245049: Implement a Rules variant of the core context system to improved DX and have a context definition class that is extensible with further information as needed by Rules.