Removed Threads Model

Removed the threads model file and replaced it with a file that just
generates the keys need to save thread metadata. This required going
through all the code and removing any reference to the old thread model
methods and updating the tests to match the new code.