Add support for autorestart in aos_starter

We have applications which we want to run only once (at startup or
during runtime).  This enables the user to configure the state machine
to support the behavior they want.

Change-Id: Ica59338956eb1cadd2edac49fbdac51b56aa516a
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/configuration.fbs b/aos/configuration.fbs
index 3401b43..c0d67b0 100644
--- a/aos/configuration.fbs
+++ b/aos/configuration.fbs
@@ -146,6 +146,9 @@
 
   // Indicates that application should be executed on boot.
   autostart:bool = true (id: 6);
+
+  // Indicates that application should automatically restart on failure.
+  autorestart:bool = true (id: 7);
 }
 
 // Per node data and connection information.