More structured stacks

This should allow more granular information regarding the overall stack traces to be sent to the server, with such information as the thread, and the actual StackElement objects persisted.