Changes to generate_rest.js and supporting files to eliminate use of ./routes/xxx files