Script: implement suggestions of hdevtools

Style fixes and redundant braces mostly, some small logic changes in
OP_CHECKMULTISIG
Script Tests: remove unused imports
Script Tests: fix most warnings

TODO move repl stuff