Move middlewares from config.ru to app