Avoid expiration before updating metadata

The X-Delete-At value might already be in the past after the initial
object creation because the current time is used to set the
X-Delete-At value. Creating the initial object before starting each
test prevents this.

Change-Id: Id892e802601b50d4eeadbf5b857212adef591456
Closes-Bug: #1269597
Check if service is available for cli tests

This commit adds checks to the CLI tests to see whether the service
that is being tested is available or not. Previously the tests would
run regardless of whether the service was listed as available in the
config file or not.

Change-Id: I16e0bbab85d2234d671ea2577757b38480e66d69
Merge "Avoid expiration before updating metadata"
Merge "Check if service is available for cli tests"