Teach sky_tools about prebuilt artifacts

This patch makes `flutter start` work without a clone of the engine git
repository. Making this work pulled a relatively large refactor of how the
commands interact with application packages and devices. Now commands that want
to interact with application packages or devices inherit from a common base
class that holds stores of those objects as members.

In production, the commands download and connect to devices based on the build
configuration stored on the FlutterCommandRunner. In testing, these fields are
used to mock out the real application package and devices.
diff --git a/packages/flutter_tools/lib/src/build_configuration.dart b/packages/flutter_tools/lib/src/build_configuration.dart
new file mode 100644
index 0000000..0db0299e
--- /dev/null
+++ b/packages/flutter_tools/lib/src/build_configuration.dart
@@ -0,0 +1,37 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+import 'package:path/path.dart' as path;
+
+enum BuildType {
+  prebuilt,
+  release,
+  debug,
+}
+
+enum BuildPlatform {
+  android,
+  iOS,
+  iOSSimulator,
+  mac,
+  linux,
+}
+
+class BuildConfiguration {
+  BuildConfiguration.prebuilt({ this.platform })
+    : type = BuildType.prebuilt, buildDir = null;
+
+  BuildConfiguration.local({
+    this.type,
+    this.platform,
+    String enginePath,
+    String buildPath
+  }) : buildDir = path.normalize(path.join(enginePath, buildPath)) {
+    assert(type == BuildType.debug || type == BuildType.release);
+  }
+
+  final BuildType type;
+  final BuildPlatform platform;
+  final String buildDir;
+}