Added validation on proxy domain for 'hiveserver' process

Hiveserver process requires configured proxy domain.

Change-Id: I14f0aea3b668afa67fdcc1fb917b8f8a69fb0f2b
Closes-Bug: #1400464
Adding database detection to migration tests

Currently the database migration tests will always run regardless of the
presence of an active database. This change adds a skip to the models
sync test if the database is not detected.

Changes
* changing the names for the mysql and postgresql detection functions to
  make them more publicly visible
* adding a function to the test class to gate database presence
* adding a test_models_sync wrapper to the base migration test class,
  this checks for database presence before running the test

Change-Id: Ic1c69fffe818763308d831d1ba5c0d030623e0dd
Closes-Bug: 1403158
Merge "Added validation on proxy domain for 'hiveserver' process"