Eliminate generated code files and their templates.

The current design of generating javascript code files containing 100s of duplicate implementations of the
API handler is inefficient and unnecessary.  It also creates situations where the routes.json file is out
of sync with the generated code.

This change drastically simplifies the code and eliminates all the duplication.

With this change generate.js is only used to generate the documentation and test code.