Performance

I suggest to fetch my branch and use `git diff -w` (or `gitk` with the whitespace changes ignored) to better review my changes. The first commit is converts line endings and does some space changes.

Following that is a performance regression fix due to an unnecessary branch.

Two other commits remove unused stuff and introduce some structure.

Finally, an implementation using Typed Arrays is added for modern browsers.

Firefox + Firebug enabled is very slow, so the performance numbers might be slightly biased, but in the Chromium profiler, the engine seems more responsive.