Metaclass for MPTT documents

This includes a MPTTBase class for methods which are added in the
document class as well as the first test for get_descendant_count.