fix beginner protection when register before server start time
fix ally def points average
fix ally attack and defence statistics
Merge remote-tracking branch 'upstream/master' into develop

Conflicts:
	GameEngine/Ranking.php