move middlewares to config.ru