Utility function to merge two config objects and use that in merging con...

...figs