Adding adaptive discretization support to segments (applicable to https://github.com/phetsims/kite/issues/22 and https://github.com/phetsims/kite/issues/32, but not done yet). Added non-linear transform support, and in particular an example polarToCartesian transformation function (applicable to https://github.com/phetsims/sun/issues/84)