Revamp triggers somewhat & fix indent calc
Revamp triggers somewhat & fix indent calc

We now have a before and a after trigger on the ip_net_plan table. The
latter allows us to run the calc_indent function which calculates and
sets the correct indentation for every prefix so it is now automatically
updated on all INSERT, UPDATE or DELETE operations.

garberg/NIPAP,ettrig/NIPAP,garberg/NIPAP,SpriteLink/NIPAP,ettrig/NIPAP,garberg/NIPAP,fredsod/NIPAP,SpriteLink/NIPAP,garberg/NIPAP,plajjan/NIPAP,fredsod/NIPAP,SoundGoof/NIPAP,ettrig/NIPAP,bbaja42/NIPAP,SoundGoof/NIPAP,SoundGoof/NIPAP,garberg/NIPAP,garberg/NIPAP,plajjan/NIPAP,SpriteLink/NIPAP,SpriteLink/NIPAP,SpriteLink/NIPAP,fredsod/NIPAP,fredsod/NIPAP,ettrig/NIPAP,bbaja42/NIPAP,plajjan/NIPAP,bbaja42/NIPAP,fredsod/NIPAP,fredsod/NIPAP,SoundGoof/NIPAP,plajjan/NIPAP,bbaja42/NIPAP,SpriteLink/NIPAP,bbaja42/NIPAP,bbaja42/NIPAP,plajjan/NIPAP,ettrig/NIPAP,SoundGoof/NIPAP,SoundGoof/NIPAP,ettrig/NIPAP,plajjan/NIPAP