Fixed issue #32 (Contents of state chart element edit box still remain rendered after agent is deleted).
Implemented feature in issue #34 (Automatically set statechart edit box to focus on a newly created statechart element).