added suspend / resume support to the JS VM code
made cgame initialization async in order to render loading screens