Updated OneThread controller to new system.

Added the delete thread service code.