diagrams: add formatters to cpp model

- place view model types in view_models namespace
driver: minor tidy-up in parser
diagrams: add target for cpp diagram

- fix some issues with cpp model