Revert "When leaving the darkroom do not loose history items."

This reverts commit c669bfbe6150a80471cf1243d58179b9e0d19091.

It's the wrong fix for a real problem. Instead of changing people's
history stack we need to introduce a "pointer" (an uint) pointing to the
selected item of the stack and store that in xmp and database.