REGISTRAR: fixed delete of new application

- If application is in state NEW and has some reserved logins,
  then logins must be deleted from DB before deleting application.
UTILS: use encryption when accessing LDAP in password manager
Merge pull request #521 from zlamalp/ldap

UTILS: use encryption when accessing LDAP in password manager
Merge pull request #520 from zlamalp/fixDel

REGISTRAR: fixed delete of new application
extended gen/mailaliases:
- 1. works with U:D:rootMailAliasesMail (if defined)
- 2. generates file 'mailaliases-root'
Merge branch 'task-1913' of https://github.com/Laliska/perun into task-1913