Support setting session variables for host DB connections.
Makes it easy to control MariaDB 10 named replication channels
without a bunch of code changes.

Change-Id: I2ffb7649ccf060405045e3cd344d141619b880d3