Plotly credentials tools

"Converted" credentials tools from https://github.com/plotly/python-api/blob/master/plotly/tools.py so users can always work within R.