Common: Remove gotos in FileUtil, and replace FILE*s with IOFile/ifstreams.
Common: Remove goto in MemArena.
Merge pull request #1486 from rohit-n/goto

Remove some gotos.