Change to a JSON config file

Includes:

 - Work on metadata download