Implement OP_CHECKLOCKTIMEVERIFY

The code is a rebased version of that in BIP65 by Peter Todd.