Restructured many of the node types into tasks, moved primtivies into new tasks namespace.