Changed order of input parameters for public methods in AclManager.

Put $identity to the end and make it a default null variable. In this
case we can test if $identity is null and fill it with the current
logged in user.
Fixed a bug in AbstractAclManager where the wrong user was returned if none was given.