Fixed anonymous LDAP logins (issue-297)
If we have a cache-miss in repository loading, return a deep copy
Simplify when repository sizes are calculated (issue-295)