Implemented autorotation of images that are uploaded to the gallery based on the EXIF orientation tag.
Moved scripts to the bottom of the page for better performance
Merge branch 'ImageAutoRotation'