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.