unit tests and fixes to command queue.
Merge branch 'master' of github.com:r-owen/twistedActor