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
Merge pull request #6 from zellfaze/issue5

Encapsulated loading of JSON files