Implement KVM in webui

This patchset adds the infrastructure to allow KVM sessions
through the webui. A websocket capable VNC/RFB connection
on the BMC is needed for KVM sessions.

To access, navigate to Server control -> KVM.

Tested: Ran obmc-ikvm on the BMC, added a KVM Handler to
        Phosphor Rest Server, and was able to establish a
        KVM session in the webui on a Witherspoon.
Change-Id: I7dda5bec41d270ae8d0913697714d4df4ec3a257
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/webpack.config.js b/webpack.config.js
index 91cbea8..6c8667c 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -113,7 +113,11 @@
       'base-uri': '\'self\'',
       'object-src': '\'none\'',
       'script-src': ['\'self\''],
-      'style-src': ['\'self\'']
+      'style-src': ['\'self\''],
+      // KVM requires image buffers from data: payloads, so allow that in
+      // img-src
+      // https://stackoverflow.com/questions/18447970/content-security-policy-data-not-working-for-base64-images-in-chrome-28
+      'img-src': ['\'self\'', 'data:'],
     }),
     new MiniCssExtractPlugin(),