Add thread state information for every thread

Adds a new attribute `threads` to each event, which contains the state (id, name, stacktrace) of every thread at the time of a crash.