Refactor the management of profile keys

Make the profile key generation dependent on the actual profile object
(non-static). This will allow us to add additional information into the
key, depending on the profile version. For example, for the boot image, we
may add the architecture so that we can capture the differences between 32
and 64 bits.

Bug: 139884006
Test: m test-art-host
Change-Id: Id1ad60ac50adcf8bfe011b8d843c4cc4e9d5fc0f
7 files changed