Issue #99: Preserve Layer#refreshInterval when converting web map to basemap & operational layers.
Fix typo in WMTS layer to XML logic.
Extract layer-to-XML logic to utility class.
Clean up.

* Consolidate variable names.

* Improve readability.
Merge branch '#99/preserve-refresh-interval-when-converting-web-map' into develop