autoupdate: Set the hash_sha256 in devserver (omaha) response

The new changes in update_engine requires the new hex based sha256 hash sent by
omaha to be checked. But, currently in devserver we only sent base64 ecndoed
sha256. This CL adds hash_sha256 in the package tag of the response by
calculating the hex based sha256 hash of the payload.

BUG=chromium:821599
TEST=cros flash

Change-Id: I4449d90513db2dcd1424a6693ec7ce172135d689
Reviewed-on: https://chromium-review.googlesource.com/961586
Commit-Ready: Amin Hassani <[email protected]>
Tested-by: Amin Hassani <[email protected]>
Reviewed-by: Xixuan Wu <[email protected]>
Reviewed-by: Don Garrett <[email protected]>
1 file changed