Bug 915572 - Allow data/gaia/sdcard cleanup to be overridden by tests

This patch splits cleanup into data, sdcard and gaia, and allows these methods to be overridden by test classes.