Check if operation worked before sending post hooks, fixes #2484
Don't unlink old renamed file if stream copy failed
Merge branch 'master' into hook-improvements

Conflicts:
	lib/files/view.php
Merge pull request #2919 from owncloud/hook-improvements

Hook improvements