Bundle gems, use RackParser middleware to parse JSON.
Reference Lotus repo on Github in Gemfile