Detect memory leaks early to give better diagnostics, and dump core on monit failures
Correct typo
Code review mark-ups
Merge pull request #226 from Metaswitch/issue217

[Reviewer: Andy] Detect memory leaks early to give better diagnostics