Implement common library for converting InstallOps to Cow Ops am: b05e4e2705 am: f3136c297d

Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1414968

Change-Id: I48c6862470575fb25218ee1538e41e4f4dc2d54b