Framework for resource safe class level fixtures

Modify BaseTestCase, add resource_setup and resource_cleanup
methods, invoked by setUpClass and tearDownClass respectively.

Partially-implements bp:resource-cleanup

Change-Id: I5f025b4f76d6d85fbefbada9475daf784425037a
Merge "Framework for resource safe class level fixtures"