Converted models and providers to use prototypal inheritance