Automatically find common ancestor for two topic branches

Often two versions of a topic branch start at a common ancestor, or only
the changes from the first common commit are interesting.  Allow this
base commit to be found automatically, instead of having the user find
it every time tbdiff is used.