Implement translate/rotate on client side of editor.
Fix several mistakes in transform and rotate modes.