Support log in map functions and abstract couch communication.