Added saving of custom Lua planet prices.

I think I might have also fixed a memory leak, though I'm not sure.