mozilla support

various implementations and changes to support the mozilla add-on sdk