WL#7308: Refactor mysql_upgrade

Affects: Server-5.7   —   Status: Complete

Currently mysql_upgrade internally invokes a number of external tools, e.g. 
mysqlcheck and mysql client. 
This causes problems in handling options, logins, special server startup modes 
etc.
And makes the server upgrade procedure a multi-step process.

mysql_upgrade should use nothing but the C API to talk to the server. 

And we should also have a version of it that's bundled with the embedded server 
and provide for a single-step upgrade process.

User Documentation