Fix replication issues

* Fixes Issue #527 more correctly
* Fixes replication password
* Removes unused variables
* Removes developer mode since generated passwords are easily accessible