stores middlewares in a hash with title, enabled, fn