Add graph traversing methods for Goods::Category.

The following methods were added:

* level
* root
* parent_at_level

It should help with 'tree prunning'.