Generalize transformations module to allow use without with statement, and to implement rotations.