[CORD-3186] Adding CORD version to the gui

Change-Id: I4512ed6fce7f5dc2bb70dc1df6f5a919456fc60a
diff --git a/src/app/core/header/header.spec.ts b/src/app/core/header/header.spec.ts
index 023bb7d..720392a 100644
--- a/src/app/core/header/header.spec.ts
+++ b/src/app/core/header/header.spec.ts
@@ -104,6 +104,13 @@
       .value('toastrConfig', MockToastrConfig)
       .value('AuthService', MockAuth)
       .value('XosNavigationService', {})
+      .value('XosVersionReaderService', {
+        getVersion: () => {
+          return {
+            then: (cb) => cb('version')
+          };
+        }
+      })
       .value('ConfigHelpers', {
         stateWithParamsForJs: () => null
       })
diff --git a/src/app/core/header/header.ts b/src/app/core/header/header.ts
index 5ef9459..0e55dee 100644
--- a/src/app/core/header/header.ts
+++ b/src/app/core/header/header.ts
@@ -27,6 +27,7 @@
 import {Subscription} from 'rxjs';
 import {IXosConfigHelpersService} from '../services/helpers/config.helpers';
 import {IXosDebugService} from '../debug/debug.service';
+import {IXosVersionReaderService} from '../services/version-reader';
 
 export interface INotification extends IWSEvent {
   viewed?: boolean;
@@ -47,7 +48,8 @@
     'SearchService',
     'XosKeyboardShortcut',
     'ConfigHelpers',
-    'XosDebug'
+    'XosDebug',
+    'XosVersionReaderService'
   ];
   public notifications: INotification[] = [];
   public newNotifications: INotification[] = [];
@@ -74,14 +76,20 @@
     private SearchService: IXosSearchService,
     private XosKeyboardShortcut: IXosKeyboardShortcutService,
     private ConfigHelpers: IXosConfigHelpersService,
-    private XosDebugService: IXosDebugService
+    private XosDebugService: IXosDebugService,
+    private XosVersionReaderService: IXosVersionReaderService
   ) {
 
   }
 
   $onInit() {
     this.$log.info('[XosHeader] Setup');
-    this.version = require('../../../../package.json').version;
+
+    this.XosVersionReaderService.getVersion()
+    .then((version: string) => {
+      this.version = version;
+    });
+
     angular.extend(this.toastrConfig, {
       newestOnTop: false,
       positionClass: 'toast-top-right',