Firefox appVM patches and appVM refactoring