Fix for context clear

This is a temporary fix until the remaining issues in the context
nodes are resolved.

The root#save has been moved into the save handler to prevent
overriding the clear.
Update ContextNodeCollection#get to use the id if one exists