Multiple fixes

* Proper document deletion & synchronization
* Delete database when deleting configuration
* Harmonize paths
Pouch does not synchronize deleted documents without this