Use urlparse instead of posixpath for urls concatenation.

**posixpath** converts *http://domain/path* into *http:/domain/path* but browsers expect double slashes after *http:*.  So, *http:/domain.path* is interpreted as relative path and urls are broken...