Make addMapFeature.js re-entrant

We'll need (at least) two instances of addMapFeature.js on the map page (one for trees, one for resources). So make it re-entrant.

Recreate addPageMode.js as a tiny wrapper around addMapFeature.js