authentication

Adds Authentication section to the json config. appKey is mandatory. Any previous Authentication section (i.e. added from initial json config) will be replaced.