Add support for chrome.downloads API

https://developer.chrome.com/extensions/downloads
We should s/object/Object/g and s/integer/number/g (there's no "integer" type in JS).