Modify stats when gems are equipped

Add modification of stats when gems are equipped to the inventory
screen. Bonuses will go into effect when the player leaves the
inventory state. Also, move the stat constants into the registry
and update stats to use an array, with constants indicating the
index of a particular statistic in that array.