Explicitly test for ActionController::Base in addition to Rails

The code uses ActionController::Base, but it is possible to have Rails
defined, but not ActionController::Base. In the old situation, the code
would have raised due to ActionController::Base not being defined.
Merge pull request #71 from Narnach/no-rails

Explicitly test for ActionController::Base in addition to Rails