Fix exception previews so that Scratchpad's Display action works in the face of errors
Move the stringify implementation to a separate file
Merge pull request #122 from past/fix-exception-previews

Address review comments from PR #118