better threadsafety in handling of the worker and a spec for async on client.
Merge pull request #44 from Amicus/feature/threadsafety

better threadsafety in handling of the worker and a spec for async on clent