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: Ib157c205b606a2f137b2d3e2a23f18c43c1ad437