Improve UI loop handling.

Only ever have one UI refresh loop running at a time. Create it when needed and destroy it when it's not needed(when Pithos is paused or in between songs.) The result is the CPU useage of Pithos won't creep up over time due to loops stacking up and Pithos will close faster because the UI loops are properly disposed of.