fix issues with widgets being present multiple time in virtualconsole widget map
remove deleted widgets from virtualconsole widget map
clear functionmanager at the beginning of doc::clear to avoid crashes
app clearing: clear doc after virtual console

This fixes QLC+ hanging up when clearing contents
with a vcaudiotrigger in the virtualconsole
Merge pull request #419 from plugz/liveedit-fix-2

Fixed live edit crashes related to the widgets map
Merge pull request #420 from plugz/clear-contents-fix

Clear contents fix