[WIP] Unify controller and integration tests

This pull request is for the following project: https://github.com/rails/gsoc2014/wiki/Ideas#unify-controller-and-integration-tests
@matthewd This should be the right way to handle the extra parameters instead of adding them to the `QUERY_STRING` directly.