GUI -- Completed implementation of Instance events (add, update, remove)
- fixed instance color selection (using cat7() function)
- miscellaneous additions to utility functions.
- etc. and so on...

Change-Id: I61895489ccc60fa17beda9e920e65742e0f2c526
diff --git a/web/gui/src/test/_karma/ev/migrate/ev_3_addInstance_B.json b/web/gui/src/test/_karma/ev/migrate/ev_3_addInstance_B.json
new file mode 100644
index 0000000..4313116
--- /dev/null
+++ b/web/gui/src/test/_karma/ev/migrate/ev_3_addInstance_B.json
@@ -0,0 +1,14 @@
+{
+  "event": "addInstance",
+  "payload": {
+    "id": "instB",
+    "ip": "123.22.33.241",
+    "online": true,
+    "uiAttached": false,
+    "switches": 14,
+    "labels": [
+      "instB",
+      "123.22.33.241"
+    ]
+  }
+}
diff --git a/web/gui/src/test/_karma/ev/migrate/ev_4_addInstance_C.json b/web/gui/src/test/_karma/ev/migrate/ev_4_addInstance_C.json
new file mode 100644
index 0000000..b3376c0
--- /dev/null
+++ b/web/gui/src/test/_karma/ev/migrate/ev_4_addInstance_C.json
@@ -0,0 +1,14 @@
+{
+  "event": "addInstance",
+  "payload": {
+    "id": "instC",
+    "ip": "123.22.33.124",
+    "online": true,
+    "uiAttached": false,
+    "switches": 7,
+    "labels": [
+      "instC",
+      "123.22.33.124"
+    ]
+  }
+}
diff --git a/web/gui/src/test/_karma/ev/migrate/ev_5_updateInstance_B.json b/web/gui/src/test/_karma/ev/migrate/ev_5_updateInstance_B.json
new file mode 100644
index 0000000..f3cc9c9
--- /dev/null
+++ b/web/gui/src/test/_karma/ev/migrate/ev_5_updateInstance_B.json
@@ -0,0 +1,14 @@
+{
+  "event": "updateInstance",
+  "payload": {
+    "id": "instB",
+    "ip": "123.22.33.241",
+    "online": false,
+    "uiAttached": false,
+    "switches": 14,
+    "labels": [
+      "instB",
+      "123.22.33.241"
+    ]
+  }
+}
diff --git a/web/gui/src/test/_karma/ev/migrate/ev_6_removeInstance_B.json b/web/gui/src/test/_karma/ev/migrate/ev_6_removeInstance_B.json
new file mode 100644
index 0000000..0ade799
--- /dev/null
+++ b/web/gui/src/test/_karma/ev/migrate/ev_6_removeInstance_B.json
@@ -0,0 +1,14 @@
+{
+  "event": "removeInstance",
+  "payload": {
+    "id": "instB",
+    "ip": "123.22.33.241",
+    "online": false,
+    "uiAttached": false,
+    "switches": 14,
+    "labels": [
+      "instB",
+      "123.22.33.241"
+    ]
+  }
+}
diff --git a/web/gui/src/test/_karma/ev/migrate/ev_7_addInstance_D.json b/web/gui/src/test/_karma/ev/migrate/ev_7_addInstance_D.json
new file mode 100644
index 0000000..3ba5fca
--- /dev/null
+++ b/web/gui/src/test/_karma/ev/migrate/ev_7_addInstance_D.json
@@ -0,0 +1,14 @@
+{
+  "event": "addInstance",
+  "payload": {
+    "id": "instD",
+    "ip": "123.33.44.55",
+    "online": true,
+    "uiAttached": false,
+    "switches": 133,
+    "labels": [
+      "instD",
+      "123.33.44.55"
+    ]
+  }
+}