client: moved serial initialization code into SerialPort class for both platforms; WeightedAverageFilter class now uses dt to scale adaptation for uneven update cycles