Script Buffer refactor

This pull request refactors `Script` to maintain a `Buffer` representation internally, and separates all template functionality to a new module `scripts`.

`Script.fromChunks` is now used consistently across the entire code base for script building, and chunk parsing is also now done over `Buffer`s also.

See commits for other specific comments.
Nice.