Reorganized rendering module, refactored transforms.
Merge upstream.