Part 3: Generators layout and generate stub rest resources

I splitted that in multiple generators later on. Side effect on making multiple PRs, some things here are totally different in latest parts, sorry