Added testnet support just to p2sh_scriptaddr function

The 'p2sh_scriptaddr' was only working for mainet, and has hardcoded version byte. I've added a 'testnet' parameter which do not interfer with original functionality.