PhoneFactory: fall back to default RIL if custom RIL Class fails

If the ro.telephony.ril_class property is set to an invalid class it will cause
Phone to repeatedly FC and make the device unuseable. This allows it to handle the
exceptions gracefully and fall back on the default RIL.

Change-Id: Ic9c309aff173de5267aa7ef633bfff87243f24fd
Merge "PhoneFactory: fall back to default RIL if custom RIL Class fails" into cm-11.0
SamsungQualcommRil: bring back operatorCheck. (1/2)

* use more memory effience algorithim.
* Add Alot of comments
* Add xml to hashmap code.
* remove obsolete code.

Change-Id: Ia567d376962d95fced93634ace52452cdaeafd8b
Merge "SamsungQualcommRil: bring back operatorCheck. (1/2)" into cm-11.0
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_frameworks_opt_telephony into kk44