Bug 982646 - refactor async messages code into nsSameProcessAsyncMessageBase class; r=smaug