rewrite archive_xlog to make it simpler

The purpose of archive_xlog is to archive and compress a WAL segment,
not to have a big script that could handle any setup including
wal-shipping. It is better to let the user integrate it with a another
script if needed.