sdcard: Allow building as a static library

 * Split main() out in order to allow linking with a multi-call
   executable such as recovery.

Change-Id: I3325135e47e4dd5af3912f5ce67ec64007d54a63
fix up adb to prefer /sbin/sh if it exists

Change-Id: I5c15731c95d123488e90aaeac5b497f556b53363
Merge branch 'lollipop' into mkl

Change-Id: I46f9d6856c6bc3b3e0fa152a5c2c088b7508f77e