"engine" cleanup - move library code to /lib, remove unused files

These are not Rails Engines, but "SearchEngine" helper modules.
Expand testing, more specs, more coverage, remove dead code