Ensure TestRestAPI closes DB cursors after use.
#31: Added logging to capped collection and API <bm-server>/api/v1/logs (see readme.txt)