Introduce a mainloop() function that will take over the common parts of
dcf77pi[-analyze].c

Probably needs cleaning up.
Add the mainloop function to the libdcf77.so
Convert dcf77pi-analyze to use the mainloop function.
Convert dcf77pi to use the mainloop function and move some code from display_time_gui() to display_bit_gui()

Needs runtime testing.