rename bundle from privsec to bitcore

...since this library is indeed likely to become the new bitcore
the beginnings of script
more convenient bufferreader
read a buffer, like slicing while iterating pos
Script().fromBuffer(buf)

...code heavily inspired/copied from bitcore
one more test to make sure things are working
preserve claimed length and op code

When parsing OP_PUSHDATAX commands, the the length of data might not require
the size integer of OP_PUSHDATAX. For instance, you might write 1 byte, and yet
use OP_PUSHDATA4. We need to record which OP_PUSHDATAX was used so that when we
write the buffer back out, we can write the same one. Also, the claimed length
may be different. For instance, we may OP_PUSHDATA of length 100 to the stack,
but there may only be 50 bytes left in the script. In that case, buf.length and
chunk.len will be different. I'm not sure if that would be considered a valid
script, but in any case, for script analysis, we need both values.
script.toBuffer();