fix add block and add workspace to work with code map better
text script updates properly when blocks are removed
Merge pull request #755 from waterbearlang/752_manage_block_events

752 manage block events, fix #752