Iss244

fixes #243 and fixes #244
Created new url_path_join function that handles slashes in urls more gracefully. 
I meant:

<pre>
def get_first_token(sequence):
   return next((x for x in sequence if x), '')
</pre>