Code tidy: remove tryToRun (now exists in loop-protect.js)
Fixed #720. The run button now sets requested/withAlerts

Also tidying up some code and removing old files.

Note that the rejig of order in live.js is because the renderLivePreview needs to assigned before we create a throttled version of the code.
Fixed #714. Strings were being double escaped.

It was being "cleansed" again here: https://github.com/remy/jsbin/blob/master/public/js/render/console.js#L109
Fix #753. Capture runner.win.onerror and echo

Had to create proxyConsole._raw to allow for messages to *only* appear in the jsbin console, this is because I needed to show errors but not prevent the native error from throwing. The reason is: native errors have correct line numbers. If I had prevented the native error, the console.error in the native console would point to where I logged, not at the source of the error.

In addition, if I simply use console.error, the native console would show my manual call to console.error AND it would throw the native error, so the error appears twice on the native console - which looked weird.

The upshot is now the line numbers (in Chrome...though now I check Firefox, of course the numbers don't match at all) match up to the jsbin line number (because Chrome runs the script in it's own VM...or something, which matches the concept of splitting out the JS in jsbin). I think we may have to either remove the line numbers entirely or do a lot more work to get this accurate.
Slightly more error reporting info - though does not appear to fire at all in firefox...
Closer to fixing console panel alone. Runner gets empty page.

Then the original source is posted to the jsbin console, whilst the rendered source (loop protect, etc) is sent to the sandbox.eval function.

Still doesn't run on initial load, but certainly closer. Needs to have the sandbox frame in place upon load.
Trying out putting share "edit view" at top
Merge pull request #763 from remy/fix/714-753-720-console-fixes

Console fixes