- Add multiple window groups to allow windows to execute JS on
different threads.
- Add new context parameters to JS and libmocha functions for thread
safety.
If two layers come in with the same name, rename the first one
to avoid a layer getting prematurely garbage collected or GC'd
twice. Originally reviewed by brendan, chouck, and nisheeth.