webos-image: sleepd=20

:Release Notes:
Correct static analysis issues and convert to use PmLogLib for logging.

:Detailed Notes:
Static analysis uncovered a variety of issues (see GF-37173 for details)
including:
- Resource leaks
- Not testing correctly for file open failures
- unsafe parsing of time and date using sscanf
- High usage of goto causing memory leaks

submissions/19..submissions/20
6322504 Code Formatting Cleanup
04063a7 Logs Conversion
bea277e Coverity issues bug fixes

:Testing Performed:
Tested for regressions on device

:QA Notes:

:Issues Addressed:
[GF-5156]  sleepd: Log using the new pmloglib API
[GF-37173] sleepd: Coverity Issues
[GF-42620] CCC: sleepd=20

Open-webOS-DCO-1.0-Signed-off-by: Keith Derrick <keith.derrick@lge.com>
Change-Id: Ib150c53a524e4118723755d6c60587ffad930e83
Reviewed-on: https://g2g.palm.com/3674
Reviewed-by: Herb Kuta <herb.kuta@lge.com>
Tested-by: Herb Kuta <herb.kuta@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Tested-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Jongho Kim <jongho1208.kim@lge.com>
Tested-by: Jongho Kim <jongho1208.kim@lge.com>