Added support for relative paths

This adds support for relative paths, meaning the user can simply provide a relative URL such as ```myFolder/action.php``` rather than ```http://www.mywebsite.com/myFolder/action.php``` - this will automatically be detected as a relative path and will be resolved by the server.