Remove excess locking.
Fix event plugin to use new backend module.
Fix the last lines feature in the API to avoid leaking between channels.