Move test_size, bind_fid and wait_for_completion to common code.

Move wait_for_completion to common code and change simple/pingpong.c to
work with wait_for_completion.
bind_fid() actually used to do something useful at one point in time.  Given that it's now a direct wrapper around fi_bind, we should probably just get rid of it.