Making Transformation threadsafe.

+ Adding mutex locks for external operations.
* Replacing Rotation and Translation with Rotate and Translate, for more
  readable code.