Changes:
- Fixes the reset button so that it also reset all long-term statistics for the energy sensor (necessary for nicer Energy Dashboard integration)
- Performance improvements for discovery (particularly on large HA installs where discovery would functionally timeout)