Extract change ownership feature to service

We added the first tests using cutest. Then made a llttle refactoring extracting the logic that happens when user changes his name.