Optimize Category.get_children() method a bit.
Add Category methods:

get_level() - show level in tree
has_children() - return True/False