rework of async code

Async commands contain now data which should be passed to resource
asynchronously. But saveAsync, setData, saveAsync for example will still
lead into race conditions under some circumstances.
cleanup