fix #31 editCategory: a child node cannot be a root node.
merged origin/master
Merge pull request #32 from snt/fix/category-move-to-root

fix #31 editCategory: a child node cannot be a root node.