Update high-level API to use Uint8Arrays.

Get rid of strings, encodings, etc and only make high-level API return
Uint8Array everywhere, and accept Uint8Array or Array or bytes.

While there, put bechmarks into their own file.

Fixes issue #3.