[autotest] Support run_suite with suite package and SSP for Brillo.

This change allows one to run run_suite command without using
--run_prod_code for Brillo build.
create_suite_job will use test_suites and control_files packages from
the Brillo build to create suite job and its test jobs.

Server-side packaging is also supported for newer builds that have
autotest_server_package artifact build.

BUG=chromium:584705
TEST=run in local instance, unittest, verify in moblab

Change-Id: Ia96ca4de919b178302580c23f911bb6445016285
Reviewed-on: https://chromium-review.googlesource.com/332431
Commit-Ready: Dan Shi <dshi@google.com>
Tested-by: Dan Shi <dshi@google.com>
Reviewed-by: Dan Shi <dshi@google.com>
diff --git a/server/afe_utils.py b/server/afe_utils.py
index 65c1d46..319bd8a 100644
--- a/server/afe_utils.py
+++ b/server/afe_utils.py
@@ -193,3 +193,11 @@
     add_version_label(host, image_name)
     for attribute, value in host_attributes.items():
         update_host_attribute(host, attribute, value)
+
+
+def get_labels(host, prefix):
+    """Get labels of a host with name started with given prefix.
+
+    @param prefix: Prefix of label names.
+    """
+    return AFE.get_labels(name__startswith=prefix, host__hostname=host.hostname)