ecdsa: moved all signature encoding to ECSignature
ecdsa: moved all signature encoding to ECSignature
ECSignature: add tests for scriptSignature
ECSignature: use for(it( style for tests