Ported over the addthread code to the component system.

To get working tomorrow.