Lots of refactoring here and there. Moar config. Better perms.