i777: recovery: auto detect fstype for sdcard

Change-Id: I775247b1770bb2a830a76cc28dccb07b235ae721
NFC refactoring

Change-Id: I5428252cb2c418fddf47267b4999b75808b44e96
Merge "NFC refactoring" into cm-10.1
Merge branch 'cm-10.1' of github.com:CyanogenMod/android_device_samsung_i777 into jb2