Modernize pastebin code.
Add event cancellation debug commands.