[WIP] added template parser and structure manager

added template parser and structure manager:

- [ ] test coverage
- [ ] finish the code
- [ ] gather feedback for my changes
- [ ] submit changes to the documentation


| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| Tests pass?   | yes
| Fixed tickets | no
| Doc           | [url to doc|none]