Prototyped new implementation of checking for duplicate Ids in feed

* Prototype for new rules engine design - rulesTester.js
* Refactored implementation of rule for checking for duplicate ids in the feed
Added writting errors to database for UniqueIds rule
prototype of new rulesEngine design. currently not tied to existing processor, however hooks exist. refactored rules, constraint and definitions
modified main function signature
purge remnants of old rules engine
Integrated new rules engine prototype into feed processor workflow
Merge branch 'dev' into rulesEngine

Conflicts:
	config.js
	dao/schemas.js
Began implementing REST Services for returning errors

* Implemented service for returning:
    * All errors in a feed
    * Errors in source element
    * Errors in election element
    * Errors in precinct street segments
    * Errors in precinct split street segments
* Updated uniqueId rule to track extra information needed to return errors
Streamlined rules engine execution. Implemented new type member for Rule object. integrated unique ID rule from rules subdir into main rulesEngine execution. TODO: make IDRule fully synchronous to streamline error saves for engine
updated the error partial templates to now handle grouped errors, and display each textual-reference under each group with the count representing the number of errors under an error group
Updating the errors page to only show the first error in an error group
Implemented Locality Type validation rule

* Implemented validation rule in 2 different ways to compare both versions of the
rules engine
updated rule engine to account for uniqueIdRuleToo approach. Street segment rule in place. Minor tuning to the interval search still needed but the rule structure is complete for the engine. Implemented base set for quick feed rules Direction, Email, Locality, PhoneNumber, Zip. These are not currently included in rules engine execution list, but have been tested and are ready.
feed-processor/rule/ruleList.js
added unique id rule back to ruleList
removed test code from rules engine. uniqueIdRuleToo now wired up for saves. next step: modify UniqueIdRuleToo save strategy so that it follows other /impl rule formats
tied up unique ID rule for demo. added stub for orig streetsegment rule to be used for comparison to segment tree approach in debug. only applies to branch mode. will be removed prior to merge
fully wired LocalityTypesRule into active rule list. Added logic to support consistent error saves and null checks during process to ensure proper engine termination.
Changed database logic to aggregate errors

* Used aggregate call on database to group errors by errorCode
tied up all current rules into engine. created new property ruleList#rule#isActive, to allow for the active state of rules to be a configurable property. Note: most quick feed rules are currently set as inactive