Start adding support for more Leaf cameras
Add a few more Leaf cameras
Basic support for newer MOS files with MAKE/MODEL
Use 0.02f as offset for creating source path.

This is the value used for circle and ellipse and avoid having the source
path created far away from the destination zone. That's a usability fix.
Add in the basics for the Credo80
Merge branch 'master' into rawspeed-leaf-more-cameras

Conflicts:
	src/external/rawspeed/RawSpeed/TiffParser.cpp
	src/external/rawspeed/data/cameras.xml
Do not rotate data upon loading. We will rotate it later in flip IOP
Refactor bitwise orientation into enum dt_image_orientation_t
IOP Flip: take care of flipping
IOP Flip: legacy params

<hanatos> okay, so the order of operations is: raw swap, raw flip, user swap, user flip
<hanatos> and we'll get
<hanatos> combined swap, combined flip
<hanatos> right?
<hanatos> so swap should just be xor, flipping twice is like not flipping
<hanatos> and we should swap the raw flip bits in case user swap was set for that axis
<hanatos> and xor that to the user flip
<hanatos> you're deciding whether or not to swap the flip bits based on the raw swap, not on the user swap
Refactor code that merges 2 orientations as a function
UNTESTED! Fix conversion of legacy_flip.user_flip with merge_two_orientations.
Correct comment for dt_image_orientation
Fix thubmnails when using embedded jpg thumbs in lt mode
Focus detection: no need to care about rotation
Fix FD for portrait images just after "history stack" -> "discard"
dt_image_altered: just use `if'
dt_dev_distort_{transform,backtransform}_plus: only check for piece->enabled, not module->enabled

WARNING: this might cause some regressions because i have not tested this extensively!
Merge pull request #584 from LebedevRI/flip-in-iop-flip-not-in-libs

Flip in IOP flip and not upon loading
dt_image_t & filter flipping deal w/x-trans raws

- storage for the x-trans 6x6 pattern in dt_image_t as well the Bayer
  pattern
- if dt_image_t.filters (the Bayer demosaic pattern) is 9, should use
  dt_image_t.xtrans (the X-Trans demosaic pattern) instead
- dt_image_flipped_filter() is a nop for X-Trans raw files, as the
  x-trans filter will be flipped on image load