emacs w3m state.
merge with various mozilla support code from from past week.