Normalize image rotation for images sourced from cameras/mobile devices

Images uploaded from mobile devices that were taken at various orientations are normalized on the devices, but when uploaded to Elgg appear rotated.  This checks uploaded files for EXIF data relating to orientation and normalizes the orientation before the file is saved - the image will then be displayed properly in Elgg.