Tweaks and improvements

(1) Make the Scrypt interface take word arrays like everything else.
(2) Add an scrypt convenience function.
(3) small refactors