Refactor download logic for plugins
Merge pull request #98 from pmdematagoda/admin

Refactor download logic for plugins