GUI -- Working towards embedding icons in tables. WIP.
- Skeleton of icon directive added.
- icons embedded in table - test HTML file.
- Augmented GlyphService.loadDefs() to allow subset of glyph ids to be specified.

Change-Id: I775a958ef9dc35b0b89a126d5c0497f72a721b71
diff --git a/web/gui/src/main/webapp/app/directives.js b/web/gui/src/main/webapp/app/directives.js
index 2cb6dc1..7d574d5 100644
--- a/web/gui/src/main/webapp/app/directives.js
+++ b/web/gui/src/main/webapp/app/directives.js
@@ -56,4 +56,23 @@
             };
         }])
 
+
+        // create icon directive, so that we can inject icons into
+        // HTML tables etc.
+        .directive('icon', ['GlyphService', function (gs) {
+            return {
+                templateUrl: 'toBeDecided-iconContext.html',
+                restrict: 'A',
+                link: function (scope, element, attrs) {
+                    // TODO: implement this
+                    // needs to pull out the parameters for the icon
+                    // from the attributes of the element, and use those
+                    // as arguments to the IconService.addIcon(...) call.
+
+
+                }
+            };
+
+
+        }]);
 }());