Put things that use Gson in their own class #6

I also fixed config saving... again.