tdm

mostly just hooked up tdm, a few other random fixes
implements an incomplete spawn generator, works well enough for now. Will need a little more work before it will be any good for non-tdm stuff.