Implement EXIF orientation handling properly, add unit tests
Implement EXIF orientation handling properly, add unit tests

The previous implementation was not handling mirrored orientations,
and even the basic orientation handling had apparently been broken
for a long time.

toaarnio/imgio