A sinatra setup for developing json api's with activerecord