Refactor config generation
Add conversion of config to coffee when appropriate