did the bulk of refactoring for making advanced search code good.  consolidated search functions, got localstorage saving working again.  the end is in sight.