Added simplifyEsriGeometry() function

Added simplifyEsriGeometry() function to accept and return an ESRI ArcGIS JSAPI Geometry (Polygon or Polyline) object.