fixed content type rendering for resources

hack - enumerated resources, content type * resource type

added helper to resolve client's preferred content type; defaults to
application/json