WAL rate limiting

https://commitfest.postgresql.org/action/patch_view?id=1390
http://archives.postgresql.org/message-id/CA+U5nMLK2dVcW7ymZ_uBRNQqeNmvDbVyW+OZmUfBKvWBALnARw@mail.gmail.com