supporting mediatypes, and a wee bugfix

base type wasn't set to default when empty master element (<master/>)