WIP: Model validations for Metric.

What is left to be done?
- Test validations with conditionals.
- Validates uniqueness of code in the scope of a kalibro_configuration,
  not in the scope of a metric_configuration.