TIMOB-13150-Added support for async operation

Merged all changes to the new pull request and fixed the issue with prepare after calling stop.

https://jira.appcelerator.org/browse/TIMOB-13150