[Download] Use new C++ wrapper in common/extension.h

ExtensionAdapater should be deperacated by common::Extension and
common::Instance.
Merge pull request #320 from halton/download_refac

[Download] Use new C++ wrapper in common/extension.h