Add code to handle file uploads in PHP 5.5 (where curl '@' syntax is deprecated)

Minor changes to ensure passed in parameters aren't assumed to be strings only.
They can be an object, the new CURLFile class.

Logic change to assembling and setting the request_settings, so that objects
aren't coerced to strings (which 'prepared_pairs' does).