Added low-level complex search method.  Also added test-debug target

Yeah, I quite like this as we could make canned search templates for different things and keep them as part of the API.