Add option create_if_not_exists to ContentRepository

Actually implemented in file and git.