Refactored file upload code into separate file

* Moved all file upload handling code into Chat.ui.fileUpload.js
* Updated index.html to reference new js file