healthd: Add battery max current check to adjust SoC.

Examine battery's max current (imax) and once it recedes below nominal
levels adjust state-of-charge (SoC) accordingly to hasten shutdown.

BUG=chrome-os-partner:46340
TEST=manual, with battery at low charge (4%) start full-screen streaming
video.  Both video/audio play smoothly until shutdown which occurs when
battery imax < 5A.

From healthd,
[  529.110280] healthd-dragon: imax=7290 soc=3
[  529.117847] healthd: battery l=3 v=3518 t=28.6 h=2 st=3 c=-1658 chg= 2016-01-12 14:19:20.633949198 UTC
[  575.223618] healthd-dragon: imax=6731 soc=2
[  575.232233] healthd: battery l=2 v=3516 t=28.7 h=2 st=3 c=-1454 chg= 2016-01-12 14:20:06.748372514 UTC
[  635.326417] healthd-dragon: imax=6059 soc=2
[  635.334322] healthd: battery l=2 v=3492 t=28.6 h=2 st=3 c=-1494 chg= 2016-01-12 14:21:06.850360251 UTC
[  695.422510] healthd-dragon: imax=5542 soc=1
[  695.429435] healthd: battery l=1 v=3479 t=28.6 h=2 st=3 c=-1364 chg= 2016-01-12 14:22:06.945518249 UTC
[  755.533159] healthd-dragon: imax=5139 soc=1
[  755.539732] healthd: battery l=1 v=3453 t=28.6 h=2 st=3 c=-1527 chg= 2016-01-12 14:23:07.055848435 UTC
[  785.806587] healthd-dragon: imax=4880 soc=0
[  785.812769] healthd: battery l=0 v=3436 t=28.6 h=2 st=3 c=-1499 chg= 2016-01-12 14:23:37.328847017 UTC
<shutdown occurs>

Change-Id: I001615348d1783c10a54d397d09e4c8f04fa78de
3 files changed