Refactor regression tests of pg_rewind

All the modes of tests are refactored and combined into a single script
for clarity, script that can be invocated with a simple "make check"
command, making it transparent to user.