Add a new func CalcMultiSigStats.

This commit adds a new function to extract the number of pulic keys and
number of signatures from a multi-signature script.

ok @owainga