* Do not create datadir.datadir_loader.
* Minor refactoring to support chains as objects.