Add restrictions to replace and create series

The minimum number of public keys is now three and the number of
required signatures must be less than the number of public keys

This fixes task #1112