Fixing issue #107

Hello. You probably alread told me how is possible that your application domain is different from baseUrl but I forgot.

Anyway. The problem with the 'parse_url' approach is that your baseURL might contains a directory 'http://my.app/myBaseUrl/' thus 'http://other.app/pageToPurge.html' becames 'http://other.app/purge/pageToPurge.html' instead of 'http://other.app/baseUrl/purge/pageToPurge.html'