Move the SIM file stuff to the service, general cleanup and robustness

More error checking, deal with different flavors of su, dynamically
retrieve privileged UID.  Should work on anything with OpenMobile Service
and root, or CM11 and root.