index term macros and tests

- also factor out the csv delimiter regex
Merge pull request #134 from mojavelinux/index-terms

Index term macros and tests