Refactor upload into its own class.
Merge pull request #4 from jonmagic/refactor-upload

Refactor upload into its own class.