OmeroCpp: Split ObjectFactoryRegistrar and remove unneeded includes

This is preparatory work to allow api and model to be split into separate DLLs.