refactors to use options --dump-config and --dump-config-hierarchy, starts impl nosetests for it