add wipe /data/media menu
support wipe_media recovery command
fix potential menu hang when wipe cache

This could happen for devices using device specific templates
match CM recovery
6.48.9

work in progress...