Add support for SQL idle timeout.

Previously, glance logged frequent
database-has-gone-away errors.

This patch adds a parameter that can configure
the sql_idle_timeout which can be decreased
to reduce these errors.

More information on this issue can be found here:
  https://bugs.launchpad.net/nova/+bug/1007027 for more details.

Change-Id: I8e3133d3bbd447095450ed40d321682dac5616cf
Merge "Add support for SQL idle timeout."