OTA: Clean up code formatting throughout the app

Eclipse code formatting tool proposes a bunch of changes to clean
up the code styling. This is to provide a codebase that follows
consistent styling rules and is good looking, which in turn allows
it to be worked on easier.

Change-Id: I484eb1927adfecba9d05f32e9b8a31e4a82ed722
OTA: Clean up line endings

The line endings in the source code should be consistent throughout
the app. This commit swaps out the Windows/DOS style (CR+LF) endings
to instead use the UNIX style (LF) endings.

Change-Id: I55dcd9d5afce7b3330c2d493f5dc4193b950c4b2
OTA: Fix a widespread NPE during state saving

The package information for the latest updates could be left unset
(null) in case the update process fails which results in a NPE being
thrown when it the value is interacted with later on. This commit
implements a simple fix to ensure that in the worst case scenario,
when the "last updates" value is requested to be set as null, it is
set as an empty array which allows it to be freely used without the
risk of a NPE being thrown.

Fixes AOSPA-642.

Change-Id: Ifb06583562e3a4891170d17622118fe1f6877dc5
Merge commit 'refs/changes/06/4606/1' of https://gerrit.paranoidandroid.co/AOSPA/android_packages_apps_ParanoidOTA into kitkat