Add a new replacement for emscripten regions

This is a native JS implementation of the region algorithms used
inside pixman. We'll soon have an associated article to go along
with it to explain it as well. For now, enjoy the increased speed
and code clarity!