Added a simple way to keep track of resources.

We need to be able to support making and using resources, this diff is
in preparation for that.