add bitcoin core ScriptInterpreter valid/invalid script tests

This adds a bunch of tests about Script evaluation from bitcoin core (and various fixes to bitcore to make them pass)

Fixes include:
- fix string to hex parser for scripts
- incorrect size for integers in scripts
- incorrect encoding for negative integers (sign+magnitude vs 2-complement)
- incorrect results to some arithmetic operations
- fix broken legacy code