Refactor EditHandle and ResizeHandle code to make it easier to test; split out _offsetToLayerPoint, _calculateRotation, and _calculateResizeOffset methods.  Write tests for _calculateResizeOffset.