Added UrlDirectory method 

when i am using async post from the plugin to another page which is in the same directory of my current page in the server i need to do few manipulation to get the directory of the page so i thought it might be useful if we create an method which will return the directory of the page in URI class itself