fix some memory leaks by changing the path generation APIs to return std::string.. but it still gets strdupped by a lot of clients.
switch over more movie and savestate code to use iostreams instead of stdio
remove the temporary savestate stuff for more tasing speed hopefully