Built the player manager, and some event handlers

Next step: don't crash when the player disconnects