Migrated more code generation into the build dir.

- Minor README formatting.
- Moved the templates directory.
- Updated the generation script to point to the new paths.
- Modified the templates to point to the new paths.