load_json_dict checks if file exists and returns {} if errors.

also, save_json_dict checks if what it's saving is a dictionary.
Added CONFIG_FILE, test for file-read/write permissions.

Credentials are separated from config items.
updated plotly.py to use new syntax and tools.get_config_file().

(also deleted some things that were commented out)