copy leaflet client in from master wholesale
remove /ws/ prefix and add routerId to conform to new API