add remaining time display

in the process, change the way progress bar, etc is updated, also pop-up
signaling the end of the experiment
remove debug action handler