Ability to add/remove specific rules

Refactored element rules into their own file. Changed RuleFactory to RuleRegistry. Added rules option to add or remove specific rules