rewrite xhr urls as they happen

- on the server I have no idea if the original url was '/page' or
'page', but on the client i do.  so this works much better.