fix($location): adjusted regex to fix #3103 and pass unit tests
test($location): added unit test for SERVER_MATCH in Cordova on Windows Phone