Hide the AM/PM preference completely if using a 24-hour clock

In addition, this commit also fixes a bug where the switch would not be
disabled on a fresh 24-hour clock install, as the preference value would
be null. This is avoided by using a higher-level method from
DateFormat to check the clock mode.

Patch Set 2: improve code styling

Patch Set 3: remove pointless application context retrieval

Change-Id: I80de938df61803649688723843439905e9909b07
merge changes from remotes/github/cm-10.1 into master

Conflicts:
	res/xml/status_bar.xml
	src/com/android/settings/cyanogenmod/StatusBar.java

Change-Id: I95e81fdc270c52b157f6c015c32b5bea823156fd