Uses LDAP login.
Adjusts code format.
Modifies the name of scheduled report subscription database table.
Merge pull request #436 from lixt/master

Replaces the original login way with LDAP.