Clean up transloader code

More specifically, clean up the mess I made while adding the chrome.notifications code.