Make all tree nodes extend a TreeNode class.

This lets you put their shared, stubbed callback methods in a single
place instead of duplicating them everywhere.
Write docs in the README.