AI-499 : inline reference - more or less completed version for inline reference edit:
- persisted new formclass and instances (refer to new class);
- shown different content for new and existing "refer to" types;
- added validation to inline reference panel.