WIP: cms generator with inherited resoruces

properly implemented cms generator with all the features from the previous shoestrap…