cwm: Honor recovery variant

Change-Id: I7fd28c162ea711cecb3ef75db6a1cb5cbcef453a
Keep 'show log' on screen until user dismisses it

Also increase log output to 24 lines

Change-Id: I11381e347c2238f2058ea97f9143476ec3a80cf6
dedupe: backup & restore selinux contexts.

- patch set 2: remove the comment line, adjust freecon.

Change-Id: Ib691146f5e4d33014aac2b540aefc06657818eb4
create /data/media directory after internal storage is wiped

This will prevent denial to read/write from internal storage under some circumstances

Change-Id: I10ee3dcdbe4ce7063f534f59a5e09c2ec33c1b7a