templates: creation of glossary

* Creates and populates glossary JSON file.
  (addresses #215) (PR #659)