1.3! lots of tough refactoring and major fixes

in particular, streamlined 7.1 solutions to be more boring (and similar
to 7.0.x search and destroy), fixed the _cachedPreferences and battery
item bugs, added back missing required main hook portions,
reimplemented version checking macro, and some other minor things