Fix multiple click and add states classes on element

Avoid double click on a active lightbox https://github.com/tholman/intense-images/issues/9 and add classes on the element for styling during image loading https://github.com/tholman/intense-images/issues/10
I'm not a killer in simple javascript but with jQuery, so perhaps the code is not so compatible with classes ?