ksp5012: libs_pwr: defer battery control to BATTERY_LIBS

If CONFIG_BATTERY_LIBS is enabled, use it to manage and
control the battery operation.

Additional cleanup (mostly kfree additions).

Signed-off-by: Russell Robinson <rrobinson@phytec.com>