Sea monkey fixes

These changes are enough to make TiddlyFox work in SeaMonkey 22.0 (issue #13), all based on https://developer.mozilla.org/en-US/docs/Extensions_support_in_SeaMonkey_2

Thanks for this extension!