app: improve the action history algorithm to prevent history lock.

The action counts must have no gap, and in particular there will always
be an action with count 1. This prevents history locking where unlogged
new actions could not be logged anymore.
app: remove the opacity feature from the action search dialog.

This is unnecessary feature for a first version and probably confusing.