Improve save()
	modified:   api/nt.php
Remove testing echos
	modified:   api/player.php
Implement toJSON function
General editing
	modified:   api/log.php
	modified:   api/match.php