Remove tests that relied on behaviour removed in last commit
Refactor _get_mysql_root_password()

Split out the functionality to get file contents and to ask the user for
the password into separate functions in util.

Also have a maximum number of attempts that the user gets to enter the
password.