Refactored state management of file upload controller.
Added .settings file.
Prevent uploading files twice.
Edit/delete stubs for buttons in file listing.