base controller can now generate its own resource response and can work with models and collections