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.
hmm. Alright, I'll run through all the files and convert the imports to follow this standard.