srand() & simple rand() supporing seed
use js variable for rand_seed
Revert "use js variable for rand_seed"

This reverts commit 3e31f83ac762e34b266b7888aec161bb2b843dd1.
fix rand_r; add rand_r in test_rand
Implement C-based events library for various HTML5 APIs.
Bump version after adding new entries to src/struct_info.json.
Reduce memory usage when assigning registers in a block.

Rather than pre-calculating liveness states and then processing nodes
in execution order, we process nodes in reverse execution order and
use the liveness info implicit in this traversal.  Names are assigned
a register when they're used for the first time, and the register is
freed when we reach an assignment.
Add dedicated testcases for registerizeHarder pass.
Simplify handling of switch statements in registerizeHarder.

It now assumes they're of the very restricted for that's actually
produced by emscripten, which both simplified the code and uncovered
opportunities for further register reduction in a testcase.
Add TODO about more permissive label handling in registerizeHarder
use correct bufferData method when passing a NULL pointer
Merge pull request #2051 from inolen/invalidate_buffer_support

use correct bufferData method when passing a NULL pointer
Merge pull request #2046 from rfk/rfk/registerize-harder-followups

Some follow-up fixes to registerizeHarder
Improve C++ exception handling.

We now allocate extra bytes before the exception data and use that,
rather than globals, to store the exception type and destructor
information.  This is step one towards having multiple exceptions
in flight at once.

We also track what exceptions are currently being caught in a stack
maintained in __cxa_begin_catch and __cxa_end_catch. This is used
for ensuring that we handle nested exception catch blocks correctly.
Rename library_events to library_html5 and other suggested renamings. Add better support for reporting EMSCRIPTEN_RESULT_NOT_SUPPORTED for unsupported features.
Add test for storing special float literals in source code. Currently fails in fastcomp.
Merge pull request #2052 from juj/test_float_literals

Add test for storing special float literals in source code.
Merge pull request #2035 from juj/html5_events

HTML5 Events API.
Implement listener gain & get functions for OpenAL
Implement alIsBuffer