Config/creds updates

@chriddyp new config/cred file handling.
the line fullfile(userhome,'.plotly','.config'); won't work on Win systems. Check the initial commits of my oo pull request. I fix this problem.