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 remote-tracking branch 'cm/cm-11.0' into cm-11.0