Move all purple code into plugin, which is now Obj-C; fix up status message sync