Extracted upload functionality to base classes

Usage for file upload view can be found in:
js/datatorrent/UploadFilesView/UploadFilesView.js

For an implementation example, look at the following files:
js/app/lib/widgets/JarListWidget/JarListWidget.js