Add test case reproducing #590

Non-host /32s don't correctly count to the parent prefix used addresses.
This adds a test to reproduce the error.
Fix stats calculation for non-host /32s

.. or /128s for IPv6. /32s or /128s (max prefix length) need to be
handled differently due to how the stats are calculated. Before this
change we looked if the type was set to host to determine if we were at
max prefix length, but since we can add a non-host (ie reservation or
assignment) as a /32 or /128, we would get incorrect statistics.

This changes the check to simply check for the prefix length instead of
the type of the prefix.
Handle upgrade case for fixed prefix statistics

Since previous versions contains buggy code for calculating the number
of used addresses in a prefix when the children were /32s of non-host
type, we need to recalculate all statistics to make sure it's correct
and we add a test to the upgrade test to make sure it works.
Merge pull request #613 from plajjan/590-fix-stats-for-32s

Fix stats calculation for non-host /32s
sql: Add status field

Add a new field called status to reflect the status of a prefix, such as
'active', 'reserved' or 'quarantine'.

Part of #494.
backend: add status field

No extra handling really, just a straight mapping of the value from API
to database.

Part of #494.
pynipap: add status field

Part of #494.
CLI: add status field

Part of #494.
www: add status field

Part of #494.
tests: fix tests for new status field

Part of #494.