Renamed capacitor upgrade to battery upgrade and introduced two additional tiers. Closes #280.
Generalized rarity computation for items (less code per item, yay).
More OpenGL error checking all over the place.