Merge branch 'incoming' of github.com:ngld/emscripten into incoming

Conflicts:
	AUTHORS
	src/library_sdl.js
	tools/shared.py
fix sanity.test_emcc_caching (we now have a cache dir earlier on)
update test_outline
fix other.test_static_link
run test_fs_nodefs_rw only in node
update unistd tests to run only on node
Break up mkstemp impl to provide mktemp impl.

The libcxx test suite wants mktemp(), so provide it by pulling
out some of the internals of mkstemp().
test runner comment
disable some recently-changed tests in modes where they need inline js or emcc
fix C_STRUCT usage in sdl
optimize asm function table emitting
optimize indexize/blockaddrsize in emscripten.py
make function table emitting nicer
Add -s CASE_INSENSITIVE_FS=1 linker option to allow VFS to lookup files in case-insensitive mode.
Fix the handling of uniform arrays in the GL interop layer. In GL, arrays of uniforms need to have consecutive locations, i.e. array[x] is at location array[0] + x. The uniform mapping table mechanism in library_gl.js did not take into account that user could do int loc = getUniformLocation("array[0]") and then call glUniform3fv(loc+2, data). In the fix, uniforms are mapped so that arrays will be guaranteed to get consecutive locations.
Merge pull request #1686 from juj/icase_vfs

Icase vfs
make function pointer aliasing configurable
fixed problem where module.exports, which is needed by node.js gets incorrectly minified by Closure. Simple change from module.exports = Module to module['exports'] = Module fixes this. Added simple test case compiling with --O2 -closure 1 to /tests/Module-exports
link in files in autodebugger
Make SDL_rotozoomSurface rotate into the correct direction