Leaflet for public map works now. Refactored more bash helpers into functions.sh. Fixed bug with merging shapefiles.