Add loader for config objects

* Will be used from later commits to load config from files.
* Also cleanup adjacent morpher API usage in corpus specs.