Isolate rewriting function of RainTPL

To easyly test and modify it.
Refactor RainTPL URL-rewriting.

It is not included back tu RainTPL yet.
But it has been tesed and is ready to plug into incoming Freeder URL-Rewriting.