Projectkk2glider/reimplementation of 1443

Can't remember last time I used `goto` statement :) But it was the most elegant solution in this case. 

Now telemetry logical switches work as before with the exception that now duration and delay processing is also done when telemetry is not streaming (this was the original bug from #1443) .

Jenkins had some trouble connecting to github, so not build from him.