Fix Tosdr not working on startup

Also doing some cleanup, style fixes and readability stuff. And don't expect the world to be better now, there is still an awful lot that could go wrong with this extension.

I removed some of the changes I made locally, since they were pretty dirty. I tried to clean up the css, so it was actually possible to debug with an old firefox debugger (the one of the current release). but please think about how much sense it makes to have -webkit,-o- and * rules in a packaged extensin for firefox.

Greetings from the guy from RMLL2013.