Fixing Issue #6301 on master branch
Added private var $certPath to store the user root cert

Move logic to determine the $certPath path to the constructor and modify to get the path from OC_User::getHome()

Add curl options to use the certificate to avoid certificate errors with self-signed certicates in the downdload/upload method so we don't get blank files
Fixing tab/space coding style
Only set SSL things when ```$this->secure``` is ```true```
Fix ```createCertificateBundle``` and  ```getCertificates``` methods
from ```OC_Mount_config``` to use ```OC_User::getHome``` to get the
path
fixing typo in redirection query string
Merge pull request #6734 from st3so/redirectfix

fixing typo in redirection query string
Merge pull request #6422 from ccerrillo/fixing-6301-external-mount-webdav-blank-files

Fixing Issue #6301 on master branch
don't unshare on delete