Fixes for problems with starting and stopping apps in a minimal system

- Missing app dependencies
- Incorrect provider registrations
- Fatal execeptions thrown when external resources are not present

Change-Id: I3fdcf0666c88a47f399a722a9ab549d1104ff40e
diff --git a/apps/routing/cpr/BUILD b/apps/routing/cpr/BUILD
index 468a283..17a3696 100644
--- a/apps/routing/cpr/BUILD
+++ b/apps/routing/cpr/BUILD
@@ -18,11 +18,16 @@
     "//apps/routing-api:onos-apps-routing-api",
 ]
 
+APPS = [
+    "org.onosproject.route-service",
+]
+
 onos_app(
     app_name = "org.onosproject.cpr",
     category = "Traffic Engineering",
     description = "Redirects routing control traffic to a control plane",
     included_bundles = BUNDLES,
+    required_apps = APPS,
     title = "Control Plane Redirect",
     url = "http://onosproject.org",
 )