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'

Conflicts:
	GameEngine/Ranking.php