Enhanced app CLI.

apps now support -a|--active option to show only activated apps.

app command now takes a list of app ids to allow single command to activate/deactivate/uninstall multiple apps

Deprecated old CLI commands which were already not included in the run-time config.

Consolidated intent & topology metrics to use the same app id since they are bundled into the same app.

Added 'reinstall' and 'reinstall!' option to onos-app tool.

Change-Id: I1406843bf608acf8e7d969a547b929d056e77067
diff --git a/tools/test/bin/onos-app b/tools/test/bin/onos-app
index 31b87d3..0515e83 100755
--- a/tools/test/bin/onos-app
+++ b/tools/test/bin/onos-app
@@ -15,10 +15,12 @@
     list) $curl -X GET $URL;;
     install) $curl -X POST $HDR $URL --data-binary @$app;;
     install!) $curl -X POST $HDR $URL?activate=true --data-binary @$app;;
+    reinstall) $curl -X DELETE $URL/$app && $curl -X POST $HDR $URL --data-binary @$app;;
+    reinstall!) $curl -X DELETE $URL/$app && $curl -X POST $HDR $URL?activate=true --data-binary @$app;;
     uninstall) $curl -X DELETE $URL/$app;;
     activate) $curl -X POST $URL/$app/active;;
     deactivate) $curl -X DELETE $URL/$app/active;;
-    *) echo "usage: onos-app {install|install!} <app-file>" >&2
+    *) echo "usage: onos-app {install|install!|reinstall|reinstall!} <app-file>" >&2
        echo "       onos-app {activate|deactivate|uninstall} <app-name>" >&2
        exit 1;;
 esac