Make the doc be the parent of the topmost node

This way is easier to handle events and also register events
on a newly created document.
Port the tests to the new API
Add a variable on the pc file for the sources modules
Start adding the animation feature