copyFile return based on type and file copyTo

- Changed the `Api::copyFile` method to only return a `File` instance if the API response type is `file` otherwise it returns a string.
- Added a convience method to the File class `copyTo` that expects a `$target`