Modify 'hysteresis' behaviour

Move hysteresis behaviour into the plugins (replaces Scaler blackout behaviour).

- Each plugin can define it's own historical tracking method / timescale
- Be more conservative about scaling down, so value must be below threshold for some number of seconds before changing down.
- Add a dummy SinePlugin for testing this