examples/daemon: split daemon into seperate binaries

Also introducing helpers for the daemon argument parsing and
constructions.

Change-Id: I4b4438785eb7322ede1d16409e6f057d037a66e5
Reviewed-on: https://weave-review.googlesource.com/1442
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
diff --git a/examples/daemon/examples.gyp b/examples/daemon/examples.gyp
new file mode 100644
index 0000000..8fee90d
--- /dev/null
+++ b/examples/daemon/examples.gyp
@@ -0,0 +1,14 @@
+{
+  'targets': [
+    {
+      'target_name': 'weave_daemon_examples',
+      'type': 'none',
+      'dependencies': [
+        'sample/daemon.gyp:weave_daemon_sample',
+        'light/daemon.gyp:weave_daemon_light',
+        'lock/daemon.gyp:weave_daemon_lock',
+        'ledflasher/daemon.gyp:weave_daemon_ledflasher'
+      ]
+    }
+  ]
+}