Mozilla boss forced to resign over opposition to same-sex 'marriage'