Many improvements to core sinatra app.