Improved error dialogs. Added syntax-highlighted JSON for last message
sent in emulator.