Refactored async file upload functionality into a mixin.
Refactored async file upload functionality into a mixin.

This should let me reuse the code for doing the dataset uploads.

denverfoundation/storybase,denverfoundation/storybase,denverfoundation/storybase,denverfoundation/storybase