WIP: Emscripten-ify rainbow-dash

Converted part of rainbow-dash to C compiled via emscripten to see if it can boost performance. Current naive port is half the perf of pure JS.