Upload resume working + project structure

In case the upload breaks, the ticket is verified
and the upload resumed properly.

Some refactoring/flattening of the JSON response structure.

Moved all sources to the src folder.