Full setDimension/Metric support

Added setDimension and setMetric methods to plugin's js and ios parts.