Allow to run swift and keystone api tests standalone

Protect glance init using the config settings.

Change-Id: If8196dbbccd8dbb1ec9f8075d978608e7f709e99
Fixes: bug 1205923
Merge "Allow to run swift and keystone api tests standalone"