A questionnaire "life-cycle" management service
A service that helps manage the lifecycle of a questionnaire, At least it should help clean up a questionnaire and the parts used in it, i.e. Question Instances and Question Answers. Could also help with creating the Question Instances and questionnaire configuration and maybe even register it directly (this part would be something like the script we have in the examples, but as a service). It should return data it deletes/sets obsolete so that the user can store it if they want to.
For example: deleting a questionnaire should also delete/set obsolete the session details, Question Instances and optionally delete the Question Answers and return a JSON object documenting the details of the deleted sessions, Question Instances and the Question Answers that were provided.
Part of the clean up can be used from the deprecated "clean up" functionality from HtmlFormQuestionnaire.