Fixup casting and () issues

Fix another casting issue and use () to make
sure that CHECK() returns a real value.
MDP plugin sends instance path first

Change to accept the instance path first followed
by the sid.
Send back only the signature.