Fix rails dependency

The current 0.4 version is dependent on Rails. This should remove the dependency on Rails::Engine and ActiveSupport so that Sinatra and other frameworks will be supported.

Fixes #74