Add Options to allow gallery transitions

Added beforePrev and beforeNext Options to allow custom transitions between gallery items to be implimented.

E.g. allowed me to impliment transitions using animate.css by letting a function complete before processContent() is called.