Added support for setting an async response

Added test and updated README with new example.

This pull request supersedes #179.