Add callbacks, smarter onbeforeunload behavior
Add smarter payload handling
Add support for game_key