Added Rating.new. Updated Submission.new to reflect the new Rating class.
Added class Type and Type.new. Modified Rating.new to make Rating#id an integer. Updated Submission.new to add class Type as Submission#type.