Fixed User entity getPermissions
Small fixes.
Authentication works again based on DoctrineORMModule authentication and Zend AuthenticationService.