Added Modules/RuleEnv.pm so we can test module caching and flushing; Added tests for module caching