Use unique_ptr
Remove iostream include.

Also move TCorrupt to be defined using <base/thrower> (Which means we now get line numbers / HERE handling)

And fix people who relied on the iostream that shouldn't have been there
Merge pull request #222 from cmaloney/general-cleanup

General cleanup