fix on create/save of user session: now credential->username field is used
fix get_errors and anonymous user in history log
merge
version
indenting
has_acl check
has_acl check