Switch to imakeidx with xindy
Configure defterm command to index automatically
Ignore imakeidx temp files
Set up \defterm to automatically index