Add memory backend

Revamp of #78 with just MemoryBackend.

After discussion with @AntoineCezar, it makes sense to get rid of couchdb backend for testing.
However, we should have specific tests for each backend.