Upload images .jpeg fails - .jpg ok             #1136

Image with .jpeg extensions were not uploaded successfully because the code snippet to get the extension was picking the last four characters of the filename which includes the dot[.] which was being missed for the case of the .jpeg which is five characters plus the dot.

The fix gets the file type using the last appearance of the dot on the filename thus works for all file types.
Fix for JS errors in Internet Explorer
Fix some login page issues.

- JS fatal error because pngFix is not loaded.
- CSS tweak to fix misaligned divs.
Merge pull request #1161 from solarissmoke/login-page-issues

Fix some login page issues.
Merge pull request #1152 from Brevin/patch-1

Upload images .jpeg fails - .jpg ok             #1136
Missing Function in reports controller

Uhmm... seems someone forgot to code a function needed to delete photos. How embarrassing for QA.
Merge remote-tracking branch 'upstream/develop' into develop