Improve getCurrentUrl method

This pull request changes the getCurrentUrl() method in the OAuthTwoProvider class so that it works regardless of whether the application is installed at the root of a domain (e.g. http://example.com/) or in a subdirectory (http://example.com/myapp).