leaflet client: clean up StopViewer and handle ms->sec API migration issues