Add a base class for config objects

Subclasses dict so we can use subclass lookup. Not optimal but a workable
solution.