Fix replication issues

* Fixes Issue #527 more correctly
* Fixes replication password
* Removes unused variables
* Removes developer mode since generated passwords are easily accessible
Merge pull request #52 from Apsu/issue527

Merged automatically by jenkins after successful build test