Fixed a typo.
Logging fixes + setting permissions at activation
Added all permission related operations
Using new activation method
Preliminary "tests" (still buggy)