OCShare - Move send email logic from ajax to "service" and add event

This should improve security / antispam measures (previously there was no checks about the file, path, etc. so you could mess with the email sent by OC) and add event for email sending.