Some refactoring in PublicGalleryController and a fix for the pagination. Project released for mid release.