Personalization

@Berdir asked specifically to review this branch, please leave the merging to him.
It is for the case of $uid == 0. Sure, it makes sense to do it initially instead.