search builder with aggregates support

@dizzyd yeah, I think we should be able to pull this out now.  Part of this checkin is having the API key filtered out of the fixture YAMLs.