Connection.get_root() now uses the node factory

to use the node factory inside a connection, a stub parent and stub tree
entry are created first.