Mozilla CEO resigns after furor over gay rights