Simplify communication between a cross-domain iFrame with promises.