Initial commit of gallery/popup library.