power: do not display the same power supply state change notification more than one time.

In some cases UPower could trigger the notify::state signal even if the state has not been
changed.
This commit workarounds that by checking from the last notified state and blocking the event
if required.
Merge branch 'master' into debian
0.25-1