Advanced Search for the staff interface

Delivers the core code changes for https://www.pivotaltracker.com/story/show/69596920