How was the society of the Roman Republic organized? How did it balance the dangers of external attack and internal division?

You'll find a lot of information in these sites that will help you answer these questions.

http://www.roman-empire.net/society/society.html

http://www.wsu.edu/~dee/ROME/REPUBLIC.HTM

http://en.wikipedia.org/wiki/Roman_Republic