Adding support for namespaced models. Should resolve #63

I could probably drop this entirely and just always use the new version where `model_class` is overridden.