WL#3836: Method to bring servers off line

Affects: Server-Prototype Only   —   Status: Complete

In order to be able to upgrade a server, a method need to be developed to bring
a server off line. It should do the following:

- Gracefully force connected clients to disconnect(with appropriate error 
message) except super users (that is, clients with SUPER privilege).
  (Cases like long running queries and abortion of locks are all taken care of)

- Allow super users to connect to manage the system.

- Deny any other user access to the system.
  - Provide a dedicated error message indicating that the server is off-line.

- Allow (all) the replication slave threads to keep applying data to the server.
  (Replication must remain unaffected by this WL)

User Documentation
==================

http://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-5.html
http://dev.mysql.com/doc/refman/5.7/en/server-system-
variables.html#sysvar_offline_mode