Encapsulated loading of JSON files

The loading of JSON files is now handled by a function rather than the
same code copy/pasted over and over.  It should be a lot easier to add
new JSON files now.

Issue: 5