create generic upload task

copied work from the lazybones project
cleanup println's
Merge pull request #2 from metridoc/generic-upload

create generic upload task