Config/creds updates

@chriddyp new config/cred file handling.
good catch! - i'll make the changes. 

On 2014-06-11, at 9:05 AM, okomarov wrote:

> In plotly/loadplotlyconfig.m:
> 
> > @@ -0,0 +1,29 @@
> > +function config = loadplotlyconfig()
> > +
> > +    userhome = getuserdir();
> > +    plotly_config_file = fullfile(userhome,'.plotly','.config');
> > +    
> > +    % check if config exist
> > +    if ~exist(plotly_config_file, 'file')
> > +        error('Plotly:ConfigNotFound',...
> > +             ['It looks like you haven''t set up your plotly '...
> > +              'account configuration file yet.\nTo get started, save your '...
> > +              'plotly/stream endpoint domain by calling:\n'...
> > +              '>>> saveplotlycredentials(plotly_rest_url, stream_rest_url)\n\n'...
> 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.
> 
> —
> Reply to this email directly or view it on GitHub.
>