Add support for emscripten as a compilation target

This allows tidy to be compiled as a .js file, and run in a browser.

Demonstration here: http://lovasoa.github.io/tidy-html5/demo.html

I'm not used to C projects infrastructures, so sorry if I didn't organize things the right way.