IDE-904

Modify existing layout diagram model classes to support nesting; Add JUnit tests for the default layout templates in portal and special cases by input template files, and one more complicated nested template with both input file and creating model tests.