Rails 3 compatibility

- Added a railtie