More refactoring and organization of photon mapping code. Note, none of it is called yet, it has only been coded.