Add $(VERSION) to the variables

this is the vresion as used in duplicates
usermanual: document new $(VERSION) variable
usermanual: documentation for the scale pixels module
usermanual: documentation for the rotate pixels module
[l10n] Swedish update
usermanual: some fixes for scale/rotate pixels
Merge branch 'master' of ssh://github.com/darktable-org/darktable
hdr merge: more stupid highlight things.
hdr merge: some slight tweaks to highlight detection
merge hdr: slightly smoother highlight rolloff
usermanual: section on OpenCL setup thanks to István KOVÁCS
Fix raw parsing race condition
We get the initial dt_image_t from the database and then read the raw. The settings that come from the raw but not the database are not there. In the past we've papered over this by adding things to the db that have no business being there (e.g., raw_black and raw_maximum). Instead we can swap the correct dt_image_t into the pipeline at the same point we introduce the buffer itself into the pipe. Let the metadata flow together with the data.
Don't keep thumbs if we've dropped the metadata
Since we sometimes need some of the raw metadata from dt_image_t to interpret "thumbnails" (really DT_MIPMAP_F images) we drop them when we drop the metadata. This should be mostly harmless for performance as a lot more metadata should fit than image data, so evictions in the metadata cache should be much rarer.
Run reload_defaults only once after img is loaded
Rework when reload_defaults gets called
partially revert the before patches :(

this seems to be needed for multi-instance and slow modules. i'm not sure i understand
why this helps and really don't like this code here, but avoids some segfaults for now.

steps to reproduce were:
- dr mode, do 3-4 heavy instances of denoise (profiled), best with parametric blending
- delete one
- go back to lr mode.
usermanual: some fixes