Move leave / quit handling to Core
Merge branch 'master' of https://github.com/simplyianm/cloudgame