MPD protocol: generic parameter parsing

and subject all commands to permissions framework