General housekeeping to the project.

- Fixed broken, and removed unnecessary, entries from the .gitignore.
- Cleaned up the README, including code examples.
- Deleted the distracting TODO file.
- Migrated code generation into the build directory.
- Renamed the npm run gen command to codegen.