Move some types and helper functions out of the Mpd_client functor

Signed-off-by: John Else <john.else@citrix.com>