Add private factory registration code.

This allows the factory to be automatically registered with the CMake
code created from UseITK.cmake that is included with targets
after calling

include(${ITK_USE_FILE})