Added Railtie and init.rb support for older versions of Rails, including
2.x and 3.0.