Fix `require` typo in Railtie
Better naming for `initialize` arguments

* Using `params` overlaps `attr_reader :params`. Use variable names that
  are contextually significant.
* Require `Query.new` to be passed a params object, falling back to an
  empty array when filtering. This handles the case where `params[:q]`
  is `nil` in the controller causing an error.