Move action_is test helper to controller helpers.
Add support for strong parameters that are included in rails 4.0.0.
Do not handle strong parameters if not defined (e.g. in rails versions older than 4).