Merge pull request #2 from eric-ch/master

Release vkbd resources, fix SEGV misery, allow dm-agent to be restarted