[WIP] JSON Deserializer

Targets #151

This is highly WIP. Please review the interface definitions before I
start implementing this stuff!
_please_ check when and how these functions get involved and whether you can pass `NULL`. Having a `realloc()` function returning just `NULL` is completely nuts!