Issue 597: Export database as JSON

No, this is part of how the JSON export was meant to be implemented from the start. The way controllers are enabled/disabled was here before, so it has priority.

Also, it makes no sense to split the two APGAR scores, they should always be included/excluded together.