webexport-20 Write rule context
Added rule context and rule registry plus their default implementations
Added some measure of exception handling
This closes #20