FORGE-1060 Initial working REST resource generator.

This kind of works, but requires fixing for nested DTOs. The persistence context should be queried to setup the linkage.