Made silverstripeable and fixes issues with auth token and used the new CurlFile class to fix deprecation errors.