Fixed more upload problems

Also added a lightbox feature for image thumbnails, color highlighting
for the comparison page and refactored the directory structure