Add ability to specify multiple apps to run on each node

refs: #2933

Change-Id: Ic5d47bb3e9ab830f01b55be37848aa680174cf32
diff --git a/ndn/conf_parser.py b/ndn/conf_parser.py
index 395c6d7..b6b6ca3 100644
--- a/ndn/conf_parser.py
+++ b/ndn/conf_parser.py
@@ -1,4 +1,5 @@
 import ConfigParser, re
+import shlex
 
 class confNDNHost():
 
@@ -58,9 +59,7 @@
 
         name = item[0]
 
-        rest = item[1].split()
-
-        app = rest.pop(0)
+        rest = shlex.split(item[1])
 
         uris = rest
         params = {}
@@ -77,6 +76,10 @@
                 cache = uri.split('=')[1]
             elif re.match("mem",uri):
                 mem = uri.split('=')[1]
+            elif re.match("app",uri):
+                app = uri.split('=')[1]
+            elif re.match("_", uri):
+                app = ""
             else:
                 params[uri.split('=')[0]] = uri.split('=')[1]