Bug 937116 - [Download Manager] Create a utility library for common DOM ...

...Download operations r=kaze,crdlc