add joinPhase rest endpoint

fixes #3.