Support for Rails::API
Merging Rails API support, closes #30
resolving conflicts