Iss244

fixes #243 and fixes #244
Created new url_path_join function that handles slashes in urls more gracefully. 
If that portion of the url scheme is blank default or '' will be returned.  
def get_first_token(sequence, default=''):
    return next((x for x in sequence if x), default)