rewrite upload function to use the request module
rewrite download function to use request
fix silly indenting issue
Merge pull request #1 from andyroyle/feature/use-request

use 'request' module instead of 'http'