more modular code for emscripten WIP [skip ci]
prep for fullscreen runner/embed code [skip ci]
fix potential null pointer access for return event in moaikeyboard
merge with master for CI on osx