nexus: Move to a line based protocol (similar to FTP) + fix bugs

Signed-off-by: San Mehat <san@google.com>
diff --git a/nexus/main.cpp b/nexus/main.cpp
index 0a0b43f..9945034 100644
--- a/nexus/main.cpp
+++ b/nexus/main.cpp
@@ -54,6 +54,8 @@
         exit (1);
     }
 
+    // XXX: we'll use the main thread for the NetworkManager eventuall
+    
     while(1) {
         sleep(1000);
     }