Some restructuring

Added BaseSkeleton and BaseNode. This should allow to extend more
easily.

Removed the hacky root injection from the MDX and M3 parsers.