tpv.generic: cache extensions for github

the cache object is configurable by adding an attribute to the node
instances.

new config option node_class.

treatment of the update method.

overwritable methods _wrap_child and _get_cache.