OmeroCpp: Split ObjectFactoryRegistrar and remove unneeded includes

This is preparatory work to allow api and model to be split into separate DLLs.

Testing: No API breaks or functional changes.  Should build and test as before.