bug 1026111 - Output register state for crashing thread in JSON output

This is mostly copy/paste-with-munging from upstream minidump_stackwalk.