add library_async.js

For kripken/emscripten-fastcomp#39

I wonder if I should leave `stack_save` and `stack_restore`, or just to inline them. I'm not sure if they will be used elsewhere.
`stack_alloc` is used twice and slightly complicated, and that's why I make a dedicated function.