Improvements to Loki support

Add a requirement for loki_flash to flash the modified
image instead of using dd.  This gives us the added security
of verifying the Loki header during flash to double check
loki_patch.

Change-Id: If5df72d4a02e04bac93d6d4626bbd57d3af3c371