Added upgrades and apm.

This script is now capable of tracking basic upgrades such as infantry
weapon upgrades etc.  It is also able to track APM or actions per minute,
as that is thought to be an important metric in determining victory.