chatthreader initial version

Basic operation should work.
Probably missing some things for more advanced messaging stuff, but should work for SMS.