Add wrappers for scalarmult and a hex decoder

Tested in the deployed form (i.e. hacked-into-place in the composed node module) then copied back to the source tree; you might want to double check that I didn't break anything in the process.

Thanks for this!