Make sure API is up before running tests

The functional tests were failing most of the time in the devstack-gate
job because the tests would run before solum-api was up and running.
This check makes sure the API is responding before the tests run.

Change-Id: I03f56349654cf08bd71fcc4b3af8008c83cd55eb
Merge "Make sure API is up before running tests"