Changed 'userdata' to ClientData
Moved plugin callback declarations to plugin base class
Use of  'theHost' in workers
Added xml output from a plugin