Fix TreeRpc to parse out the "definition" flag from a JSON request to delete a
tree so that the definition may be removed. Closes #241