refactor CalculateVariables()
add some documentation in CSystemManager
simplify CEmpire::GenerateSystemList
reorder functions in CSystem, make a few const

no logic changes
fix an infinte loop