reorganize common data and functions

- make RandomAway circular
- move unit counts from buildhandler to counthandler
- initialize unit counts: set every name in the unittable count to 0
- move unitlists and unittable to a common.lua that is required by
everything, and common.lua requires unitlists, unittable, and
commonfunctions (that are currently in the top of unitlists)