Make recovery mode test portable for new write API

Add insert/delete stream callbacks. The legacy write API will use "log_query" for everything, due to append_getlasterror() in collection.c.