gracefully handle ExitStatus exception in async main loops
Improve CMake toolchain file to use response files. Avoid the compiler detection mechanism that could throw CMake off depending on what is in Windows PATH. Use CMAKE_EXECUTABLE_SUFFIX to specify whether to build .html or .js.
Utilize EM_BUILD_VERBOSE in other.test_cmake.
Delete Emscripten_unix.cmake, the previous commit makes that obsolete!
Add a test to ensure that EMSCRIPTEN=1 variable is set in CMake when building.
Fix other.test_cmake when EM_BUILD_VERBOSE is not defined.
Remove the need to pass CMAKE_MODULE_PATH to CMake by weakly setting it in the toolchain file.
Remove the old mechanism of generating a CMake toolchain file on the fly when 'emconfigure cmake' is called. Instead, the Emscripten toolchain file in Emscripten\cmake\Platform\Emscripten.cmake is always used. This unifies the CMake toolchain handling to use the same toolchain independent of how CMake gets invoked.
Have test_cmake also test that running 'emconfigure cmake' works, in addition to running cmake directly.
Remove default filename suffix specification in CMake toolchain, since test_openjpeg will then fail to configure.
Adjust EM_BUILD_VERBOSE environment variable to take values 0,1,2 or 3, with the following meanings:

0 - No verbose build. Emscripten will mute stdout and stderr invokations of external tools (configure, cmake, make). Stdout and stderr of those runs will be logged to file (the old mechanism)
1 - Print stderr.
2 - Print stderr and stdout.
3 - Print stderr and stdout, and invoke make with VERBOSE=1.
When running out of memory and growing heap size is not allowed, actually print out what the current value of TOTAL_MEMORY was the application was built with, to help estimate how much memory might be needed.
Use __EMSCRIPTEN__ rather than EMSCRIPTEN.

This was requested by someone upstream when I'd originally submitted
these changes and is more correct.
Document tests in test_cmake.
Use logging.error() instead of print >> sys.stderr in test_cmake to report errors.
fix inline js in x86 target, enable testing sans validation for inline js in asm.js, fix unistd tests that use inline js to not validate, and make js optimizer more tolerant of inline js in asm code; fixes #1597
improve non-switchification error message
Merge pull request #1596 from waywardmonkeys/change-preprocessor-define-libcxx

Change preprocessor define libcxx
Merge pull request #1598 from juj/informative_oom_message

Informative oom message
handle inline assembly more carefully, avoid it being seen by asm optimizations entirely, and mark it as unsupported in non-le32