Fix up the plugin handling code

kind of a waste of time, since the underlying plugins library doesn't appear to be working correctly (or I'm misuing it)
spawn debugMsg code in a seperate thread to avoid unecessary contention
cleanup the withChannel code a bit by using bracket_
remove some more unecessary liftIO calls