Merge pull request #264 from mikeh/master

Replace some [self class] refs
Ensure correct session creation for Community Edition repositories