Move to a more flexible metric definition scheme

Put all the metrics in a single dict with their attributes as subdicts.
This allows full code deduplication and disengages metric types from
other attributes like their place in the dict tree returned by
transmissionrpc
Move once more secondsActive back to gauges

This was reverted before but now we are ready for it