Add open and close events for clearing

Open: triggers clearing:open before a thumbnail is opened
Opened: triggers clearing:opened when a full size image is opened
Close: triggers clearing:close before the visible_image div is close
Closed: triggers clearing:closed once the visible_image div is closed
(actually hidden)