Cleaned up unused definitions

  Added TW_DEVICE_IS_HTC_LEO flag for HD2-specific functions
  Maybe this way extended twrp could be easier built
  for other devices too.
  Changed some code for 'DalvikOnNand', but it needs work.