Switch app to modular style.

Switch app to use the more modern modular style. Add config.ru so that rack is used and add the Rack::Deflater middleware.