editor fixes and tests. karma conf tweaks, phantomjs has a bug, so use firefox. use jasmine.