Added a config option to add an extension to the urls 

I added a config option named "url_extension" which is blank by default and when the method "addUrl" is called, I append the extension if the conditions are met : no trailing slash and if the extension is not already here.