First working firefox (nightly) support.
Probably excessive changes can be backed out