Merge pull request #8 from scor/master

Fix several fatal errors and notices when using libAuthentication in Drupal