Move sample files to data/sample-files
Add handleCurlOutput.
Needs to work, then needs refactoring.