Refactoring type specific code into modules
Added TPolyLine as an example
Moved TObjectHandler to its own files.

Additionally, register it always last, so it is used as a generic
fall-back.