Switch to testtools and make barbican compatible with Python2.6

Change-Id: I1e08612d6c9d43808d1f1db166ea1a807c63aae8