Update settings helpers to check for file existance before overwriting

New helper load_secret, single function which encompasses the other helpers.