Firefox preferences page and porting modules

The bulk of the module porting, at least.