Extract common main function components

Change-Id: I0813e5c9e322d2ccf726a671c7cf336737c05caf
Whisper metrics replay script

This allows replaying of data from whisper files into a carbon cache.

Change-Id: Ia5004c32462d5e7ed93cd5cb0a6da16516cec802
Added log directory to package

Change-Id: Id091dbe6a056512c913b2e9f95b061dfbfd011a5