Support specifying rest resource name

Add support to specify the resource name (name of model on rest endpoint) instead of forcing it to be the pluralModelName.