added utility function urljoin_keep_path

Using this function will make the xmatch code more stable and easier to test.
Should be `six.moves.urllib` for py3 compatibility