WIP edit.coffee passes tests, back out my pavelib speedup hack