thresholds: add new thresholds module for threshold checkers

Adds classes that are able to check if a value conforms to a threshold.
For now there is a numeric, that compares if a value is greater or smaller
than a certain limit and an Enum based, that has a set of good and bad
values

Also adds Mixins that can be used in plugins to create the thresholds
automatically from dict with the set of limits