Add an abstract environment 'defaults' in config for DRY

Fixes #249 #289.
btw config should be model