Implemented code in a way so that combinations of excluded/included fields get handled in the correct way. NOTE: You cannot mix them due to a mongo restriction right now.
Fixed spelling error and removed debug code.
Fixed regex syntax problem for "like" query.
Created module for building filters so all modules can implement a "search" method.
Added query method.
Removed search modules, now any entity can search it's own model.
Simplified function for readability.
Removed console.log
Removed console.log.
Removed search module references.
Added a condition to treat 0 as a null.
Updated test.