Updated fn-spec to include classNames
Removed Classnames file and added code to fn.js
Fixed typo dimentions to dimensions
Moved Device/Link logic from Topo2D3 into the model
Model now calls onChange when any property is changed via the set Method

WIP - Added d3 force layout for devices and lines

Change-Id: I4d1afd3cd4cecf2f719e27f4be5d1e874bd9e342
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Collection.js b/web/gui/src/main/webapp/app/view/topo2/topo2Collection.js
index 3116a6f..e0aefb7 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2Collection.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2Collection.js
@@ -55,8 +55,6 @@
                     _this._byId[d.id] = model;
                 });
             }
-
-//            this.sort();
         },
         get: function (id) {
             if (!id) {
@@ -77,7 +75,10 @@
         _reset: function () {
             this._byId = [];
             this.models = [];
-        }
+        },
+        toJSON: function(options) {
+            return this.models.map(function(model) { return model.toJSON(options); });
+        },
     };
 
     Collection.extend = function (protoProps, staticProps) {