Implement showLeaderboard and submitScore
Implement AppStateClient support

- and refactore code a bit