Partially forked from https://github.com/dblock/grape-on-rack