PEP8
Export XML: emails visible only if user can edit

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

Closes #64
API Mode with no AK, accept AK
Fixed submission of session1 value in reg form