LDEV-1347: Update the validation for branching. Splitting the validation code off into a separate class, to make the LearningDesignService class easier to read.
LDEV-1348: Adding the tool id to the condition, so that conditions can be re-instated automatically in authoring if the user changes a branching activity from tool based to group/teacher chosen and back to tool based. On the server side, the data is redundant at present, so the id is added to the DTO only, and ignored in the extraction code.
LDEV-1348 Switching branching types retains branch mappings but discards when saving design. Added tool activity to tool output condition to enabled pre-selection when returning to Tool based branching type and mappings exist.
LDEV-1366 Fixed onReleaseOutside event for dialog and also problem where dialog could be 'thrown' off the stage, but was unable to reproduce the error where the dialog doesn't initially have focus when dealing with setting up branching
LDEV-1320 Changed javascript to close all open windows (from Author) Note: close all windows currently only working in Firefox. Changed javascript to open multiple windows and retain focus of open window if same tool is opened in author.