Add statistics according to #248

This add basic statistics for VRFs, pools and prefixes in the backend, exposes it via the API and enables support in pynipap so that the CLI and the web can display statistics.
I don't think piece of code will work if you move the prefix several indent steps. I've added an example in the above linked trigger-trickiness page...