Finished: Check permissions with permission module, finalise sessions (left minimalistic, the configuration is loaded each time, so that if the user changes anything there is nothing to sync. Will decide later if this is something to be optimised, but I very uch doubt it)