Changes in core repo, for Emails sending functionality

Along with this pull request I have added all of my changes in the core repository. Please review this codes with #13 and give your suggestions to improve this feature. 

Here I have added new column "email" to oc_users table.