Fix gf1.
Switch internals to typed arrays. Reject untyped arrays in high-level API.

(Curve25519 still uses arrays)
Add sign.input.js test with ed25519 test vectors.
Make scalarmult test shorter.
Fix scalarmult test.
Fix sign.input test.
Fix benchmark.
Don't use Uint32Array in core() for now.

They make salsa slow in V8:
https://code.google.com/p/chromium/issues/detail?id=97878
More type arrays.
Bring code structure changes from newcurve branch, but leave
crypto_scalarmult from nacl/ref code.
Merge tests from newcurve branch.
Make Curve25519 use typed arrays.
Build.
Merge branch 'typedarrays' of github.com:dchest/tweetnacl-js into typedarrays

Conflicts:
	nacl.js
	nacl.min.js
	tests/sign.js