Apro_gen_runner: refactoring. Apro_gen initializing goes in the second thread too.

Demo application: some parameters can be changed during the calculation.