Refactor common code for UV scale and shear tools into abstract class UVTextureGridTool.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>