sensible handling of lua stack trace printing, I hope
never run without pcall
Merge pull request #965 from JDaance/pr-pcall-and-traceback

I hazily recall working on this part of the code in my own branch after the split from 1.5. I am going to pull this in now then compare and resolve conflicts later.