Fixes a problem w/ content types in copy content

When a content is copied the content type is not applied to the new
content. This commit makes sure the content and all its ancestors have a
content type. If the content does not have a content type the type from
the original is applied, otherwise the current type is kept.
Merge pull request #24 from stenbacka/fix-copy-content-content-type

Fixes a problem w/ content types in copy content
Repo.id is not set for childcont in move operation

When moving a content with children the childrens repsitory
was not changed. This is now fixed.