Continued development of threads and tools.

Physics thread mostly finished and renamed, more work on helper
files to work with depth data.