Improve selection of default status code

Select by content type along with method. Set default status code if
a location is set via @represent but a status isn't.
Reorganize resource-related stuff

@represent was renamed to @config in the process.

This is in anticipation of some upcoming refactoring.
Rename template_name @config arg to template