Thumper's resource management refactor.

There now exists a GenericResourceManager class that can be declared with different template parameters to manage different types of resources.

Fixes #69

Discuss.