Change permissions to delete owners and masters

Now only permanent owners can delete other owners and only owners can
delete masters.

Ticket #88