Implement BIP62 rules 2, 3 and 4

Agreed, should be just MIT then.