cleared core_factory_managers.*
Made REGISTER_***_FACTORY macos. Now works for e1. Should do it for e2
with pb-derived class also