Refactored async resolver code flow
Merge pull request #178 from cesanta/async_resolv

Refactored async resolver code flow