Based on http://www.confreaks.com/videos/2442-railsconf2013-you-ve-got-a-sinatra-on-your-rails