Add new util class JSMigrationManager to handle app version migration issues.

Add -beginAsyncOperationWithTimeout method in AbstractTests.