Introduce local couchdb document holding partition tag.

This tag is appended to each update log, so that the cleanup logic
can analyze it.
WIP on cleanup of update logs.

The problem atm is the update logs coming from different databases
have their own unrelated seq_num. Consider adding some kind of tag
in update_log document, which would allow know from which partition
this update origins.
wip