support for password based replication

hello

i've added support to use user and password for replication. changes are minimal. if password is not configured same recovery.conf is generated.

thanks