Show the correct plot/resource marker on detail page
For methods added to map, get map using `this` rather than `that._map`

Because `that._map` is null after the first polyline is removed from the map.
When a polyline is removed from the map, remove it from the internal polyline list.
Better cleanup of area polygon.

Fixes OpenTreeMap/otm2-addons#38
Fixes #1265
Fixes #1264
Merge pull request #1268 from OpenTreeMap/fix/show-the-right-marker-on-detail-page

Show the correct plot/resource marker on detail page
Merge pull request #1269 from RickMohr/more-roof-fixes

Improve cleanup of area polygon
Fix typo in ui tests
Fix typo in UI tests
Merge branch 'release'
Support term substitutions (like "Resource" -> "Watershed Solution")

* Global context gets `term` dictionary with text substitutions
* Reference using the desired term variant (title/lower case; singular/plural), e.g. `term.Resource`, `term.Resources`, `term.resource`, term.`resources`
* Current substituable terms are "Resource" and "Resources" (but we can add more if we want)
* Replace all uses of e.g. "Watershed Solution" with e.g. `{{ term.Resource }}`
Add a comma between plot count and resource count

... by moving logic from the template to the view
Merge pull request #1272 from RickMohr/custom-terminology

Support term substitutions (like "Resource" -> "Watershed Solution")
Make REPLACEABLE_TERMS discoverable by translators
Fix ecobenefits footer message

* Use `instance.supports_resources` instead of `instance.stores_plot_only`
* Eliminate space before period in common case of no resources.
Merge pull request #1274 from RickMohr/fix-eco-footer-message

Fix ecobenefits footer message
Simplify signature of `context_dict_for_plot`

* Remove unused argument `supports_eco` (according to Adam this optimization is now implemented lower down)
* Pass `request` instead of `instance` and `user`
Adjust templates to include/exclude the right things for resources

* Include photo container so page layout doesn't look funny (resource photos coming in a future PR)
* Include progress bar and audit wells
* Exclude "nearby trees" (discussed with Deb; nearby resources are visible on the little map)
* Exclude comment message (the one about not serving as a way to report problems with a tree)
Support progress bar for resources

Also hoist some generic code out of `context_dict_for_plot`
Show recent edits for resources

* Refactor `_plot_audits` to support resource audits
* Use resource class's display name in "short description" of audit
lint from previous PR