Schema and migration to make Case Type a first-class table

CRM-14473