ditest: initial commit, add ditest.WithTemporaryDB() test helper
api/api_test: initial commit of API root test