Code cleanup
Click on map for new polyline
get dist when opening in browser
Merge branch 'master' into new-polylines
+ _prepareMapIfNeeded()
Stupid hack

Prevent map 'click' event by delaying busy=false

L.DomEvent.stopPropagation(event) didn't work :(
Custom new first/last point listener