Category list cleanups
Reworked some of Gallery mess and added a new GalleryItem class. Code is not tested so it probably doesn't work as it is. Still a lot of work to do with the Gallery.