made permissions class attributes by default, a bit of code cleaning, made permissions for all authorized users actually work
added login common