Respect the vip if it has been set
Sync charmhelpers to pick up fix for distro as a valid source
Put db_host calculation in its own function and only set db_host to the access_network address if the remote client provides a hostname that is in the same address range
Ensure get_db_host always returns an ip address and fix bug with get_db_host referencing loop variables outside of the loop
[gnuoy,r=jamespage] Ensure vip is always used if configured
[niedbalski,r=hopem]

Ensures that if auto-generated password is created/used, the same password
is used each time the config is rendered.