cleanup, use toPersistValue at least where we can
Added the ad gallery jQuery module to the gallery browser.

Hacked the control images on the slideshow viewer to use the
bootstrap glyphicons.