Added basic draft code to update requirejs config file with outputs

This adds the option of auto-updating requirejs config files with output paths, code from bower-requirejs adapted. It can probably be written a bit cleaner, my node js is very basic