Don't require railtie on old version of rails

- Railtie was introduced after rails 2, so allow old versions
of rails to use the middlewares manually rather than blowing up