Add utility functions for dumping core
Merge pull request #6 from Metaswitch/sto518

[Reviewer: Rob][From: Alex] Diagnostics code review.