Starting to refactor instruction tracing and logging. Moving tracing into a struct and logging the struct, rather than a field at a time.