Refactor the resources directory structure.

In preparation for non-Kubernetes resources.