Add pmgallery configuration stuff.