Functions
load_configfile(configpath)
load_configfile
Loads a JSON or YAML configfile as a dict, then checks that it's a dict.