Fix bug that caused the metric scripts to update incorrectly
Remove indices from keys (which caused view to update incorrectly. Removed ability to select multiple of the same metrics. Add comments. Changed remove function in metricEditor to emit an event, which is then handled by the parent.