Add scaffolding for resource controllers and update state files to use them