Clean up jshint warnings
Begin comment support
Improve editing

Fix newline creation; add selection restoring; improve html layout