Implement setShouldSwitchSlotOnReboot and resetShouldSwitchSlotOnReboot

Test: Install OTA, call resetShouldSwitchSlotOnReboot, make sure slot is
set to _a, call setShouldSwitchSlot, make sure slot is set to _b

Bug: 187321613

Change-Id: I4d0a5ed9292bdbefda4b48e84dbcfb4751406b28
diff --git a/common/utils.cc b/common/utils.cc
index 25df540..45ad425 100644
--- a/common/utils.cc
+++ b/common/utils.cc
@@ -1047,4 +1047,8 @@
 
 }  // namespace utils
 
+std::string HexEncode(const brillo::Blob& blob) noexcept {
+  return base::HexEncode(blob.data(), blob.size());
+}
+
 }  // namespace chromeos_update_engine