Added child routes, and config defined routes

Change-Id: I61c5a49a330a63737312d1eb6077aab02236a44f
diff --git a/src/routes.ts b/src/routes.ts
index c6de435..1dd1b43 100644
--- a/src/routes.ts
+++ b/src/routes.ts
@@ -7,10 +7,8 @@
   $locationProvider.html5Mode(false).hashPrefix('');
   $urlRouterProvider.otherwise('/');
 
-  // TODO onload redirect to correct URL
-  // routes are created asynchronously so by default any time you reload
-  // you end up in /
-
+  // declare here static endpoints,
+  // core related endpoints are dynamically generated
   $stateProvider
     .state('xos', {
       abstract: true,
@@ -22,9 +20,15 @@
       parent: 'xos',
       template: '<h1>Dashboard</h1>'
     })
-    .state('xos.nodes', {
-      url: 'nodes',
+    .state('xos.core', {
+      url: 'core',
       parent: 'xos',
-      template: '<h1>Nodes</h1>'
+      abstract: true,
+      template: '<div ui-view=></div>'
+    })
+    .state('test', {
+      url: '/test',
+      parent: 'xos.core',
+      template: '<h1>Child</h1>'
     });
 }