Cleaned up config file parsing and caching to a simple structured system.