[#48675561] Use Railties and a config.  Autoinsert the middleware.  Version bump