changed rest.php to default send json and players.php, some minor changes in post