add Bitcoin#block_average_mining_time
use explicit endianness in un/pack

  makes bitcoin-ruby work on native big-endian machines too.
add missing opcodes and correct cast_to_bignum to parse/de-serialize/run testnet3 scripts.

  quite a big commit that took lots of on/off work, more to come..

  let's welcome the chunk of new script tests.