Use callbacks and async processing in the demo scripts; this is important as otherwise things can get tangled up very easily.

git-svn-id: https://svn.apache.org/repos/asf/wookie/trunk@1584014 13f79535-47bb-0310-9956-ffa450edef68