Added MojoNewWait and MojoNewWaitMany, along with unit tests.

R=viettrungluu@chromium.org
BUG=365436

Review URL: https://codereview.chromium.org/774673003