create a klp.settings object to hold general app-wide settings, create a tilesURL setting, make map tiles URL protocol relative (use https when page is https, use http when page is http)
rm unused inline- js files