Use afterBind to send fileId header for files and directories

afterBind is called for both files and directories and is now used to
send the OC-FileId headers.

Fixes https://github.com/owncloud/core/issues/9000

Final version I hope, doesn't need any patching :smile: 

Please review @DeepDiver1975 @icewind1991 @th3fallen