Start to make the MPD connection more self contained.

Also, clean up the headers a bit; trying to avoid having glib.h in the
internal headers.