Proxy refactor

Removed proxy flag and localized proxy functions into corsProxy.js.

At startup bother server.js and ausglobeviewer get proxy list from public/config.js
IE9 check in ausglobeviewer and corsProxy list added.
Proxy flag removed from init_nm and GeoDataCollection

I think I caught everything but worth some heavy local usage before deploying.
Yes, this is actually mid work.  I checked it in because I had to run for the train.  The problem is if you look at the link Tim sent around and click on info it crashes which is because things like base_url are not set as expected.  There's a bit more work to make it ok.  So it should be fine as long as we don't push it up to the server yet.

________________________________
From: Kevin Ring [notifications@github.com]
Sent: Friday, 18 July 2014 6:28 AM
To: NICTA/nationalmap
Cc: Keith Grochow
Subject: Re: [nationalmap] Proxy refactor (#236)


In src/viewer/GeoDataInfoPopup.js:

> @@ -246,15 +246,15 @@ var GeoDataInfoPopup = function(options) {
>          } else {
>              return '';
>          }
> -
> -        return baseUrl + '?service=WFS&version=1.1.0&request=GetFeature&typeName=' + viewModel.info.Name() + '&srsName=EPSG%3A4326&maxFeatures=1000';
> +
> +        return baseUrl;// + '?service=WFS&version=1.1.0&request=GetFeature&typeName=' + viewModel.info.Name() + '&srsName=EPSG%3A4326&maxFeatures=1000';


Don't we need all these query parameters? After this change, Surface Water -> Bores looks like this:
[image]<https://cloud.githubusercontent.com/assets/924374/3619067/d6e68222-0df0-11e4-980d-1609720baaef.png>

We should either add back the query parameters, or remove the claim that the link is sending you right to GeoJSON data.

—
Reply to this email directly or view it on GitHub<https://github.com/NICTA/nationalmap/pull/236/files#r15081851>.

________________________________

The information in this e-mail may be confidential and subject to legal professional privilege and/or copyright. National ICT Australia Limited accepts no liability for any damage caused by this email or its attachments.