polygon-edit: remove unused event dispatcher & listener
polygon-edit: use EventEmitter2 in order to dispatch custom event
polygon-edit: fix jshint warnings
polygon-edit: split model.js -> models/dot.js & add unit test
polygon-edit: split model.js -> models/line.js
polygon-edit: add unit test for line.js