The structure and manipulation of resources in quantum information theory