Implement support for MARC reader plugins. Split out the stats handler section into a plugin.