Add an abstract environment 'defaults' in config for DRY

Fixes #249 and #289.