magit-log-format-graph-function: new option

This makes it possible to implement the original proposal from #495, be
writing a single function.  Unless someone contributes that function, I
will write it myself once I find the time to do so.