Generate random root password if omitted

Generate a random root password if left undefined instead of making it
mandatory. This will only set the random password when mysql gets
installed the first time but not on consecutive runs.

Behaviour for when the password is defined is left unchanged.