fix inserting snippets when multiple selections are present
fix editor scrolling down automatically when resizing and scrolled past end
cleanup demo html pages
update index.html
Merge pull request #1952 from ajaxorg/misc

Sync with cloud9 + better demos