implement gcfg

This ended up being a lot simpler than I was expecting. Now we read from a config file into a struct and use those values.