Add very crude integration of the object tree.

This is full of hacks, but it shows a path forward.
QSFPM triggers this assert by calling index() during begin/endInsertRows.

Still needs to be investigated.
Crude integration of the widget inspector.
Temporary fix for usage on the client side.