clean up the sharing ajax calls, add mail notification class
Merge pull request #7247 from owncloud/sharing_cleanup_step1

clean up the sharing ajax calls, add mail notification class