Sync with upstream version 20140427.

The corrections from tweetnacl either isn't backwards compatible
or I'm doing something wrong on OS X.

I'd like to incorporate a few (many?) tests from the original nacl
project to ensure this OS X version stays compatible.