Export XML: emails visible only if user can edit

Also, added email-md5 hash.
Expot HTTP API: email protection and md5 hashing
Protection granularity added to email XML export