Rename Resource model's field  into
Change Resource's factories to use resource_type instead of type
Change Resource spec and Contains spec to make use of Resource's  instead of
Change Resource and ResourceValidator to make use of  instead of