Upload is now working - still need integration tests and an api for displaying documents.