Updates TestAlgorithms.template_based_finder to handle orientation, as well as ImageSampling, im_utils, and gen_utils to facilitate script processing.  Also refines and begins to extend ColorCategorization.