Add SecurityGroups API sample tests

Add sample tests for adding and removing security groups
Fixes bug 1157222

Change-Id: Ib8450fcd6334b720a2199d52e07ae00f78aa6df0
Only call getLogger after configuring logging.

Logging needs to be setup properly before we try to log
something. Fix a test case that loads the code but does
not execute the code that results in the LOG being setup
properly.

Fixes LP# 1161031

Change-Id: I9d5bc6b87cfb25243f00e17b532d4485dc4454e4
Merge "Only call getLogger after configuring logging."
Allow describe_instances to use tags for searches

In the EC2 API, the DescribeInstances API call allows for a 'filter'
argument to be passed, consisting of key/value filter pairs.  If the
filter contains tag:<something> or tag-<something>, the search is done
on resource tags.

See
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstances.html
for details of the API and

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html for
usage.

Change-Id: If2622c4dacbdd3a53fd6d49242225692da8b741a
Signed-off-by: Stephen Gran <stephen.gran@guardian.co.uk>