Lightbox-style gallery
Check ajax permissions (fixes #8)