cleaning up dump_state logic
making a separate file for threading. Refs #162

This pulls in the thread object, the call stack, and stack frames