File changes

Fixes bug where files are erroneously created before the request is sent. File still generates a unique filename, but it is created by CurlFile at send time. Test cases have been included for affected functionality.

Kindest regards

Adam