Search params

Based on #2887, I've made some adjustments for handling query strings.  A forthcoming commit will address the API.  Stay tuned!