Core pr 4

Updated coding style and fix url encoding.
Proxy or rewriter does not matter. I cannot see how one url B can be appended to another url A and the sum remain valid if url B is not encoded.

`http://foo/what/ever/http://bar` does not make sense.

The only case would be if B is not in fact an url. In that case we should make that clear.