Remove old ownership code and use Minetest's built-in ownership code instead
Some minor code rewrites here and there to accommodate this changeover.