[stable10] Replace emittingCall with separate before and after events
[stable10] Replace emittingCall with separate before and after events

The call to emittingCall was causing issues when
clients like android are trying to upload files.
Which were triggering after events even when the
upload operation was not completed. Replacing
emittingCall would explicitely call the before
and after events when required.

Signed-off-by: Sujith H <f003c101b6db321bb70f3b324d211f3cd092837a@owncloud.com>

owncloud/core,owncloud/core,owncloud/core,phil-davis/core,owncloud/core,owncloud/core