Add support for Firefox. Various layout fixes.