Call util functions through class methods

This allows a user to override how models are derived from objects and
how models are converted to resource names.
Replace spaces in resource names with dashes