Fixed Cache issue: We know cache is out of date if the count of objects is different than the networks. Also cleaned up logic in finding if a user is a friend