Implement delete hooks for trashbin and filesversions apps.

fixes https://github.com/owncloud/core/issues/5802

please review @schiesbn @kabum