Changes to uploading a ca file for a server link

- create folder if it doesn't exist
- correctly save file if edited
UI now correctly shows if self-signed certificates are allowed for a link
Merge branch 'develop'