fix some naming issues
fix editor namespacing and visibility, mainly via a healthy sprinkling of underscores
rename spec/editor.js to spec/editor_test.js
add editor_test.js, accidentally left out of previous commit