RepositoryService: Updated docblocks, fixed added arguments to createResource (overwrite), decoupled logic for updateFileResource from createFileResource