Refactoring to support deserializing generic objects and to result in simpler Json config files.

Starting to add basic support for preparing work for miners.