Create active association

Create an association between an active image
and the active image's version object.
This change includes code to remove the active
association if the image is deleted.

Change-Id: Id5b2d353d7df05854b035641765e1066d64a3ef5
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/activation.cpp b/activation.cpp
index 3f16b7b..5b54571 100755
--- a/activation.cpp
+++ b/activation.cpp
@@ -102,6 +102,8 @@
     squashfsLoaded = false;
     rwVolumesCreated = false;
     Activation::unsubscribeFromSystemdSignals();
+    // Create active association
+    parent.createActiveAssociation(path);
 }
 
 auto Activation::activation(Activations value) ->
@@ -232,6 +234,9 @@
 
 void Activation::delete_()
 {
+    // Remove active association
+    parent.removeActiveAssociation(path);
+
     parent.erase(versionId);
 }