Finally got Node::toJsonObject and Node::fromJsonObject working.
Strangely, if you try to access a JsonObject that doesn't exist because
you forgot to include the return statement in Node::toJsonObject, it
segfaults!
Added methods to add nodes to NodeTree::nodeMap and to set NodeTree::currentNode'