Shadow refactoring

removed lots of code from painter.
created architecture to organize renderingpasses.
some fixes to make shaders resolutionindependent.

todo: integrate wireframe and flat/gooch/... shading in renderingpasses