Initial add of class.catgallery.php

This is still work in progress!