Revert "Remove rather useless context menu to add title to history."

This reverts commit c03b3461140df2b24e01e9203325b723cbe0fd6f.

The menu item is not completely useless, it useful when the automatic history
gathering is disabled and this menu could be used to add items to the history
manually.
Better way of dealing with adding title to history.

We only show that menu item to add the title to history if the
history is set to only collect the entries manually.