Bug 906249 - Refactor ThreadActor.prototype.onResume into a bunch of helpers so it isn't hundreds of lines long; r=jimb