gallery: preliminary public/private/allow publishing support; not done yet