EditAccount: rename, re-parent and replace the tags of an account in one
DB transaction. Lock order: the hierarchy lock (always, so the cycle check
and the write are serialized with every hierarchy writer), then the tag
keys, then the account rows. The revision is checked under the locks.
EditCommodity: replace the symbol, the name and the other tags of a
commodity in one DB transaction. Lock order: the tag keys, then the
commodity row; a commodity has no hierarchy. The revision is checked under
the locks.
One pane of an ActivityReport. The caller supplies a label, a filter
that selects which splits belong in the pane, and a display-time
sign-flip hint. The command returns raw accountant values; flip_sign
just travels with the data so UIs know how to render it.