Transformer: Refactor the Transformations object

Test Plan:
 * add a transformer
 * translate, rotate, reflect, and dilate a shape

Reviewers: alex

Reviewed By: alex

CC: alpert

Differential Revision: http://phabricator.khanacademy.org/D5846