Enhancement: Automatically orientate photos when generating thumbnails

The thumbnailer now makes use of the exif orientation information to automatically orientate pictures before generating thumbnails.

https://github.com/owncloud/ocis/issues/4477
https://github.com/owncloud/ocis/pull/4513
