Initial JSON commit

Adds general framework for JSON config loading and saving.