New implementation of PowerUI dialog control

Looks like AOSP got a little fancier with when and how they
determine it is appropriate to call the dialogs. So we adapt
accordingly. Later, we can look at custom settings in which the
user may define warning dialog levels.

for example:

Low warning - 25%
Low warning - 16%
Critical warning - 4%