Shelf: Save() leaked a previous fStream. Untested.

Also, a few style-cleanups along the way.
HaikuDepot: Should fix 64-Bit build.