fixed couchdb document subscription bug
built tools
added integration tests for upload