Add elli:set_callback to reconfigure middlewares