init: add detection of charging mode

-when BOARD_CHARGING_MODE_BOOTING_LPM is set to a path_to_sysfs_attribute
 then it and lpm.rc will be read accordingly.

-adapted from techomancer's original change:
 (add detection of charging mode, remove the code for parsing param.lfs,
  since it is not needed)
 http://goo.gl/I19GG

Change-Id: I64c2379225e00afaaf17ee03eab67546781668f8
init: Reintroduce support for the older charger modes

For devices with pre-ICS bootloaders, bring in the support for
arbitrary cmdline charger flags from CM7

Change-Id: Ibf887f6aeca0b68aa38fe035aa586aed502f1662

Conflicts:

	init/init.c
init: fix indentation and tab

Change-Id: Ia832ab4df5d955b2fa2b791baf9444aca21c2571

Conflicts:
	init/init.c

Change-Id: I05ec86e4118f39a3b0c11f24965300aaf1a505c0
init: define BOARD_CHARGING_CMDLINE parameters

Change-Id: I722e49e2a13418bf887c361c85e9d102168ca97