Temporary revert "Fix remove Rails API support"

This reverts commit 32f72262f44d8678fbc6eab6efa75e164be4afbb.

The Rails API support should be removed before merging because
it is off-topic, however, it may be useful during developement.
If you need it, revert this commit, I'll clean that before merging.