Throw exceptions if contenttypes.yml is not readable or writeable

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>