JS obj2bin converter from p3d.in

Here is the JS obj2bin converter used by http://p3d.in. It is highly optimized for speed and memory usage (at least compared to python version).

I would say by now it is somewhat battle proven - p3d.in have >6k uploaded models, though we initially used the .py script, until our servers started running out of mem. :)

It can run in both browser and node.js (through the small wrapper script node_obj2bin.js). There are also a few unittests which can run with nodeunit (or just with node.js).

We've added support for triangulating ngons, and generally tried to support whatever weird variants of .obj which has been thrown at us: negative (relative) indices, white-space and line wrapping weirdness, etc.