Reset stalled when starting debit progressbar

Issue:	#943
For interrupted progressbar, just print a newline rather than risk calling all cleanup

This also fixes interruptions delaying the next progressbar tick
display.

This also fixes printing 'done' when stdout is not a TTY.
Cancel the alarm when the progressbar is done
Rework progressbar display logic and remove the need for the alarm.

This fixes support for --STALLED-- output in debit bars.

Issue:	#943
No need to limit calling progressbar_tick() as it is self-limiting

Issue:	#943
Fix progress ETA. Need to set last_update.

Without this the elapsed period was getting 1 second longer
on every tick, having calculated from the beginning. This
resulted in the calculation considering that it took
now-begin seconds for the 1 tick to fire, meaning
very very low BW

Issue:	#943
Progress bar: If not in a TTY, show progress_message after interruption on next tick
Debit progress: Show total size, bw, time at end.

It is more useful to show this information to the user rather than
hiding it.
Fix pkg-config for arrays/objects

Issue:	#971
Fix RC scripts being started on deinstall rather than stopped

Reported by:	gwollman