log error on ingest.
properly handle bad JSON POSTs.
update a few todos.