Bug 987281 - Refactor AutoLocalJNIFrame. r=blassey