Clean up and a couple of bug fixes

This cleans up some ip selection and service restarts. The service
restarting is changed to match the correct way of restarting with usage
of the upstream mysql cookbook.

There was also a bug of not using strict quotes around passwords in case
a password with special characters are used.