Mozilla add-on policy compliance

Changed DOM insertion method to avoid innerHTML
Loosing T+T server contact no longer requires refreshing the page.
Several other bug fixes.