emscripten: intro the emscripten platform to generate to JS

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tests: support testing the emscripten module

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>