pull leaflet into libs, use dynamic protocol references in urls