[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
@pixeltrix If it is easier, could I discuss some of it with you on campfire? I'm on (UTC+08:00) but I can cater to your timezone as well.