Take logging filename from config.json
add template JSON file for users to fill in

Easier than documenting format out-of-tree
Move cosm config variables into a cosm JSON object

To clear the way for adding other web endpoints