mpd: rewrite connecting/disconnecting functions to use signals.