CRM-14265 preliminary tidy up of unused vars & mis-cased classes
CRM-14265 add event fields to advanced search
There is a long elseif section which I have replaced with a whitelist on staticMap - this means that all tables defined in  are now available from the search - which adds Event, Address & Group to the list, In a separate commit I add the second two the UI. I haven't investigated Survey or Campaign
CRM-14265 add address & group custom fields to the search UI