Fileupload

Made a file upload library
Changed the way export works
Changed tests to match changes to upload

In general the controller is way smaller now and the state machine is not terrible