replace filesystem with couchdb as a backend. Fixes #4, Fixes #2