Bug 836605 - Use prototype to speed up cloneAsMozIApplication. r=genelian, a=tef+