Move ORS command line into main thread

Also eliminate the mostly similar runPage function in favor of
using a single runPages function to avoid code duplication.

Change-Id: I46ef414beb4009fee16d4de13d8a5ab2b9678409
diff --git a/gui/gui.h b/gui/gui.h
index 21c460e..5b2cdec 100644
--- a/gui/gui.h
+++ b/gui/gui.h
@@ -26,7 +26,7 @@
 int gui_loadResources();
 int gui_loadCustomResources();
 int gui_start();
-int gui_startPage(const char* page_name);
+int gui_startPage(const char* page_name, const int allow_comands, int stop_on_page_done);
 void gui_print(const char *fmt, ...);
 void gui_print_color(const char *color, const char *fmt, ...);
 void gui_set_FILE(FILE* f);