Add ability to regenerate files in server mode.
Extract out renderer
Fix for warning on minitest 5.0.1