Dev json xff v0.4

New version based on previous PR #1111.
Ah yes, we have our own implementation in util-memrchr.c