Improved Refish subroutes

- getSubroutes() is now a method of the Node class
- getSubroutes() is called only once per node at construction time,
  not at each GET request
- template parameter removed from the Node class

Change-Id: Ie4eb8766717aae566c13c295458fe0dba8ab84c0
Signed-off-by: Borawski.Lukasz <lukasz.borawski@intel.com>
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index f504cc7..53dd127 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -13,6 +13,7 @@
 #include <memory>
 #include <string>
 #include "redfish.hpp"
+#include "webserver_common.hpp"
 #include <crow/app.h>
 #include <boost/asio.hpp>
 #include <systemd/sd-daemon.h>
@@ -43,10 +44,7 @@
   auto io = std::make_shared<boost::asio::io_service>();
   crow::PersistentData::session_store =
       std::make_shared<crow::PersistentData::SessionStore>();
-  crow::App<crow::PersistentData::Middleware,
-            crow::TokenAuthorization::Middleware,
-            crow::SecurityHeadersMiddleware>
-      app(io);
+  CrowApp app(io);
 
 #ifdef CROW_ENABLE_SSL
   std::string ssl_pem_file("server.pem");