Generate requirejs config in ruby

This is a precursor to removing the need for applications to reference
specific Dough components directly
That's a great idea, although I think we should do it as a separate PR so we can get this merged in in the meantime.