function to create composite resources

created from info from
http://robertwesterlund.net/post/2014/03/12/creating-a-composite-dsc-configuration-with-parameters