Iss244

fixes #243 and fixes #244
Created new url_path_join function that handles slashes in urls more gracefully. 
Isn't it needed since the url_path_join function calls it?