Intermediate commit for shadow mapping. Not working yet but making good progress. Did some cleaning up as well.