Refactor gitignore
Add JavaDoc generation script. (Generated docs gitignored out of repo.)