Replace sinatra app to rack app