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.
Append port to trusted domain in case it's not 80 or 443

Ref https://github.com/owncloud/core/pull/10584#issuecomment-54677059
delete old previews
make sure preview prop is instanceof OC_Image before using it in showPreview
files_sharing: add route for ajax/publicpreview
Merge pull request #11200 from owncloud/preview_better_errorhandling

make sure preview prop is instanceof OC_Image before using it in showPreview
Merge pull request #11199 from owncloud/delete_bogus_previews

Delete bogus cached previews while updating
Merge pull request #11203 from owncloud/fix_broken_previews_on_public_page

files_sharing: add route for ajax/publicpreview
[tx-robot] updated from transifex
fix button text l10n
Merge pull request #10499 from owncloud/mkcol-headers-afterbind

Use afterBind to send fileId header for files and directories
Merge pull request #10939 from owncloud/add-port-to-trusted-domain-wizard

Append port to trusted domain in case it's not 80 or 443