Add support for chrome.downloads API

https://developer.chrome.com/extensions/downloads
Optional parameters should always be named with an "opt_" prefix.