Bug 864931 - Rewrite net worker in C++. r=fabrice,r=vchang a=1.3t+