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.
This is done quite a few times, should we create a function for it instead?