Backend: use combined ajax function

Facilitates a better error handling
Log on state shut down + player data sending