Fix profile's xml

Patch Set 1:
Fix parsing profile's xml for airplane mode and ring mode.
Reading the xml used to turn all settings below airplane mode and ring mode to default.

Patch Set 2:
Rebase
Clean up

Patch Set 3+4:
Rebase

Change-Id: I902318fd4db82bb628e0d157c48c4e86ba30cf71
Merge "Fix profile's xml" into cm-10.1
Merge remote branch 'cm/cm-10.1' into cm-10.1